From: Jim Meyering Date: Sat, 6 Nov 1999 16:21:18 +0000 (+0000) Subject: (do_link): Fix typo (in which the function name `symlink' X-Git-Tag: FILEUTILS-4_0j-trial~79 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=81718d1a58062a8908d602f27cee47b96073a8e8;p=thirdparty%2Fcoreutils.git (do_link): Fix typo (in which the function name `symlink' was tested instead of the variable `symbolic_link') that could make ln perform an unneeded `stat' call. --- diff --git a/src/ln.c b/src/ln.c index b13d1629a3..b0c1149eb6 100644 --- a/src/ln.c +++ b/src/ln.c @@ -210,7 +210,7 @@ do_link (const char *source, const char *dest) beyond this point, because the error message you'd get is misleading. */ && (backup_type == none || !symlink) - && (!symlink || stat (source, &source_stats) == 0) + && (!symbolic_link || stat (source, &source_stats) == 0) && source_stats.st_dev == dest_stats.st_dev && source_stats.st_ino == dest_stats.st_ino /* The following detects whether removing DEST will also remove