diff options
author | Jim Meyering <jim@meyering.net> | 1996-06-26 12:31:13 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-06-26 12:31:13 +0000 |
commit | ba87d08c0ef07596713534edf1b05a59d99efef4 (patch) | |
tree | 13db0fff8a5fbfd9f35adc86f4f50407f9866c29 | |
parent | d9c0413f798c8c2d001263a0ae9cd2a9906ded47 (diff) | |
download | coreutils-ba87d08c0ef07596713534edf1b05a59d99efef4.tar.xz |
(do_link): Remove `!symlink &&' conjunct.
-rw-r--r-- | src/ln.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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; |