summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-04-25 02:34:36 +0000
committerJim Meyering <jim@meyering.net>1996-04-25 02:34:36 +0000
commitf59d1dac4668e4acd35f638c357c92cff38fd39b (patch)
tree5e6b5d53be0c2e74210343bb010dd2f5b7394ce9 /src
parent359f885aae97a2026c62cf2da62edde0b6e64a49 (diff)
downloadcoreutils-f59d1dac4668e4acd35f638c357c92cff38fd39b.tar.xz
(do_link): Remove duplicate `if (lstat' block.
Diffstat (limited to 'src')
-rw-r--r--src/ln.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/ln.c b/src/ln.c
index 5f3935ca3..5822b87bd 100644
--- a/src/ln.c
+++ b/src/ln.c
@@ -151,12 +151,6 @@ do_link (char *source, char *dest)
}
}
- if (lstat (dest, &dest_stats) != 0 && errno != ENOENT)
- {
- error (0, errno, "%s", dest);
- return 1;
- }
-
/* If the destination is a directory or (it is a symlink to a directory
and the user has not specified --no-dereference), then form the
actual destination name by appending basename (source) to the