]> arthur.barton.de Git - bup.git/commit
_apply_linux_xattr_rec(): do nothing if no rec; fix restricted access test.
authorRob Browning <rlb@defaultvalue.org>
Tue, 5 Nov 2013 22:17:04 +0000 (16:17 -0600)
committerRob Browning <rlb@defaultvalue.org>
Tue, 5 Nov 2013 22:17:04 +0000 (16:17 -0600)
commit756e0314a1ac7b0776a66b60424a532b82086db0
tree26cf5e88fdaec192c38993aa59773a89345a42fe
parent6ff6c91b8f709590b9f5360c1afd7c42cb535ddf
_apply_linux_xattr_rec(): do nothing if no rec; fix restricted access test.

If the metadata object has no linux_xattr, don't do anything at all in
_apply_linux_xattr_rec(), and don't test the filesystem for xattr
support to determine whether or not to expect an xattr error, because
EACCES trumps the other errors.

This should be more efficient and fix a
test_apply_to_path_restricted_access() failure.

Thanks to Sebastian Schumb <sebastian@sebastians-site.de> for
reporting the problem and helping track down the fix.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/metadata.py
lib/bup/t/tmetadata.py