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
This commit is contained in:
Jérôme Duval
2009-05-30 12:20:11 +00:00
parent a47e7e30e4
commit e81f1b80e9
+5
View File
@@ -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
{