From: Jim Meyering Date: Thu, 25 Apr 1996 02:34:36 +0000 (+0000) Subject: (do_link): Remove duplicate `if (lstat' block. X-Git-Tag: TEXTUTILS-1_14c~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f59d1dac4668e4acd35f638c357c92cff38fd39b;p=thirdparty%2Fcoreutils.git (do_link): Remove duplicate `if (lstat' block. --- diff --git a/src/ln.c b/src/ln.c index 5f3935ca34..5822b87bd9 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