From e81f1b80e977fa06225d30776da2f86c2d724e8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sat, 30 May 2009 12:20:11 +0000 Subject: [PATCH] copy attributes on symlinks (only testable with -P, --no-dereference), fixed bug #3539 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30921 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/coreutils/src/copy.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/coreutils/src/copy.c b/src/bin/coreutils/src/copy.c index 184c130386..cb8098bcbb 100644 --- a/src/bin/coreutils/src/copy.c +++ b/src/bin/coreutils/src/copy.c @@ -2124,6 +2124,11 @@ copy_internal (char const *src_name, char const *dst_name, preserving owner/group is a potential security problem. */ } } + + if (x->ignore_attributes == 0 + && copy_attributes_by_name(src_name, dst_name, false) != 0) + fprintf(stderr, "%s: could not copy attributes\n", src_name); + } else {