-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: --preserve should keep xattr #5834
Conversation
GNU testsuite comparison:
|
GNU testsuite comparison:
|
@@ -3701,3 +3703,57 @@ fn test_cp_no_such() { | |||
.fails() | |||
.stderr_is("cp: 'no-such/' is not a directory\n"); | |||
} | |||
|
|||
#[cfg(all(unix, not(target_os = "macos")))] | |||
fn compare_xattrs<P: AsRef<Path>>(path1: P, path2: P) -> bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i will update this code to use the one in
#5835
after this one is merged
d6854e9
to
8a31fea
Compare
GNU testsuite comparison:
|
Should help with tests/cp/acl.sh
GNU testsuite comparison:
|
Kudos :) |
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it the expected behavior that the test doesn't fail if the changes in cp.rs
are not applied?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, i am planning to fix mac and the tests once they land :)
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
GNU testsuite comparison:
|
Should help with tests/cp/acl.sh