diff options
author | Jim Meyering <jim@meyering.net> | 2005-03-01 12:27:47 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-03-01 12:27:47 +0000 |
commit | 4303f0454592421eea48be87777d32a49e1d5e5b (patch) | |
tree | 3f98452e0663280b95f98095e565ef3b267111f2 /src | |
parent | 5b676988465daa0af86dffe7187b7fd9442b3782 (diff) | |
download | coreutils-4303f0454592421eea48be87777d32a49e1d5e5b.tar.xz |
(copy_internal): Change test of source type from !S_ISREG to S_ISLNK.
Reported by Paul Eggert in
http://lists.gnu.org/archive/html/bug-coreutils/2004-10/msg00050.html.
Diffstat (limited to 'src')
-rw-r--r-- | src/copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/copy.c b/src/copy.c index 85cd638a0..62cf4ec6e 100644 --- a/src/copy.c +++ b/src/copy.c @@ -1081,7 +1081,7 @@ copy_internal (const char *src_path, const char *dst_path, && (x->unlink_dest_before_opening || (x->preserve_links && 1 < dst_sb.st_nlink) || (x->dereference == DEREF_NEVER - && ! S_ISREG (src_sb.st_mode)))) + && S_ISLNK (src_sb.st_mode)))) { if (unlink (dst_path) && errno != ENOENT) { |