From: Jim Meyering Date: Wed, 26 Jun 1996 12:31:13 +0000 (+0000) Subject: (do_link): Remove `!symlink &&' conjunct. X-Git-Tag: FILEUTILS-3_12o~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba87d08c0ef07596713534edf1b05a59d99efef4;p=thirdparty%2Fcoreutils.git (do_link): Remove `!symlink &&' conjunct. --- diff --git a/src/ln.c b/src/ln.c index 3c40037e84..c193bd52cc 100644 --- a/src/ln.c +++ b/src/ln.c @@ -200,11 +200,9 @@ do_link (const char *source, const char *dest) && source_stats.st_ino == dest_stats.st_ino /* The following detects whether removing DEST will also remove SOURCE. If the file has only one link then both are surely - the same link. Otherwise we check whether they point to the - same names in the same directory. The latter is meaningless - when making a symbolic link. */ - && (source_stats.st_nlink == 1 - || (!symlink && same_name (source, dest)))) + the same link. Otherwise check whether they point to the same + name in the same directory. */ + && (source_stats.st_nlink == 1 || same_name (source, dest))) { error (0, 0, _("`%s' and `%s' are the same file"), source, dest); return 1;