diff options
author | Jim Meyering <jim@meyering.net> | 2001-07-02 06:42:35 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-07-02 06:42:35 +0000 |
commit | cd88376b05b3609787d9323ff944b0ce6a3273c8 (patch) | |
tree | 403af40035d92aef3b2303ea31f781b66b8a7a15 | |
parent | 40277bdae4b893a7b17b466442adda1abcb21086 (diff) | |
download | coreutils-cd88376b05b3609787d9323ff944b0ce6a3273c8.tar.xz |
(do_link): Test the boolean symbolic_link, not the function, symlink.
Patch by Frederik Eaton.
-rw-r--r-- | src/ln.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -224,7 +224,7 @@ do_link (const char *source, const char *dest) equivalent: `ln -f k k' (with or without --backup) to get beyond this point, because the error message you'd get is misleading. */ - && (backup_type == none || !symlink) + && (backup_type == none || !symbolic_link) && (!symbolic_link || stat (source, &source_stats) == 0) && source_stats.st_dev == dest_stats.st_dev && source_stats.st_ino == dest_stats.st_ino |