summaryrefslogtreecommitdiff
path: root/src/ln.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-11-06 16:21:18 +0000
committerJim Meyering <jim@meyering.net>1999-11-06 16:21:18 +0000
commit81718d1a58062a8908d602f27cee47b96073a8e8 (patch)
treefd7c594d0611495f5c4ff9274438ca6b7d77b00d /src/ln.c
parent9dc239aca70556218d59bc8f3d2ab1f6f647834b (diff)
downloadcoreutils-81718d1a58062a8908d602f27cee47b96073a8e8.tar.gz
(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.
Diffstat (limited to 'src/ln.c')
-rw-r--r--src/ln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ln.c b/src/ln.c
index b13d1629a..b0c1149eb 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