cp: treat selinux warnings consistently
commit584e38d8b3199924ce24f9fa075d27d0d82a2a8b
authorPádraig Brady <P@draigBrady.com>
Tue, 13 Apr 2010 11:49:05 +0000 (13 12:49 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 13 Apr 2010 12:09:50 +0000 (13 13:09 +0100)
tree218644d5a074554ed256617a5cbd3b8c1854868f
parentc420cfef77b9173a754806dc49deacabb436044f
cp: treat selinux warnings consistently

* src/copy.c (copy_reg): Suppress SELinux ENOTSUP warnings consistently
between the destination being present or not.  Previously we did
not suppress ENOTSUP messages when the destination was present.
(copy_internal): Use the same ENOTSUP supression method as
copy_reg() even though the issue was not seen in this case.
* tests/cp/cp-a-selinux: Add a test case for the issue and
group the other test cases in the file more coherently.
* tests/cp/cp-mv-enotsup-xattr: Do the same check for xattr
warnings, even though they did not have the issue.
src/copy.c
tests/cp/cp-a-selinux
tests/cp/cp-mv-enotsup-xattr