]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(do_link): Fix typo (in which the function name `symlink'
authorJim Meyering <jim@meyering.net>
Sat, 6 Nov 1999 16:21:18 +0000 (16:21 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 6 Nov 1999 16:21:18 +0000 (16:21 +0000)
was tested instead of the variable `symbolic_link') that could make
ln perform an unneeded `stat' call.

src/ln.c

index b13d1629a33bf43ebbf0e2a109ee3c00e7ffea04..b0c1149eb6f53840f2696cd9dd5ad722a32c4391 100644 (file)
--- 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