-
-
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: copy attributes after making subdir #6884
base: main
Are you sure you want to change the base?
Conversation
898a027
to
6676cde
Compare
GNU testsuite comparison:
|
GNU testsuite comparison:
|
GNU testsuite comparison:
|
fn build_dir( | ||
path: &PathBuf, | ||
recursive: bool, | ||
options: &Options, |
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.
why changing the order?
// Copy the directory, preserving those permissions. | ||
// | ||
// preserve permissions (mode, ownership, timestamps) | ||
// | copy directories recursively | ||
// | | from this source directory | ||
// | | | to this destination | ||
// | | | | | ||
// V V V V |
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 don't think we need this comment :)
it is quite obvious
GNU testsuite comparison:
|
Closes #6875.
TODO:
test_dir_perm_race_with_preserve_mode_and_ownership
.