projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40277bd
)
(do_link): Test the boolean symbolic_link, not the function, symlink.
author
Jim Meyering
<jim@meyering.net>
Mon, 2 Jul 2001 06:42:35 +0000
(06:42 +0000)
committer
Jim Meyering
<jim@meyering.net>
Mon, 2 Jul 2001 06:42:35 +0000
(06:42 +0000)
Patch by Frederik Eaton.
src/ln.c
patch
|
blob
|
history
diff --git
a/src/ln.c
b/src/ln.c
index
c7345a4
..
ec85c81
100644
(file)
--- a/
src/ln.c
+++ b/
src/ln.c
@@
-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 || !sym
bolic_
link)
&& (!symbolic_link || stat (source, &source_stats) == 0)
&& source_stats.st_dev == dest_stats.st_dev
&& source_stats.st_ino == dest_stats.st_ino