]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Make `cp --link --no-dereference' work also on systems where the
authorJim Meyering <jim@meyering.net>
Sat, 3 Jun 2006 09:04:22 +0000 (09:04 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 3 Jun 2006 09:04:22 +0000 (09:04 +0000)
commit4c7979f7c249606c0d6b73fd01b92b0825d83741
tree8ddc8281638f90c238886684d1248e4d8649ecc2
parent6293c4ae503c59411e8f2f66e91149a47829fbd9
Make `cp --link --no-dereference' work also on systems where the
link system call cannot create a hard link to a symbolic link.

(copy_internal) [LINK_FOLLOWS_SYMLINKS]: Don't use
the link syscall on a symlink when it would do the wrong thing.
Based on the patch by Aurelien Jarno: <http://bugs.debian.org/329451>
src/copy.c