-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
cp: require preserve only certain attributes #4095
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cp: require preserve only certain attributes #4095
Conversation
580c42d
to
71467ee
Compare
71467ee
to
2f52037
Compare
GNU testsuite comparison:
|
I have to admit this is outside my area of expertise :) If we can build a solution like this in the test framework then that would be great! |
@tertsdiepraam I pushed a version I made so far, code is not exactly clean, but just want to get it in the light for opinions and CI :) |
4ebc7ae
to
cbaef90
Compare
9ed1a0d
to
fc3b15b
Compare
fc3b15b
to
50653e9
Compare
In GNU cp, there's a lot of special handling of errors based on using
-a
,-p
,--preserve=all
,--preserve=xattr,context
etc. which is not handled properly at the moment. In this PR, an analogous behavior to that ofrequire_preserve_xattr
,require_preserve_context
, andrequire_preserve
flags in GNU cp code is implemented.Somethings left todo are testing xattr permission denied case (outside of Android test), and also context permission denied case. One idea is making a simple user-space fuse FS with advanced xattr modification permission controls. I couldn't find any simple solution to this... Ideas? cc @tertsdiepraam @sylvestre
Closes #4079.