cp: Preserve mode for directories when copying by default.#9794
cp: Preserve mode for directories when copying by default.#9794nikolalukovic wants to merge 10 commits intouutils:mainfrom
Conversation
e5a0699 to
e96a0d6
Compare
|
GNU testsuite comparison: |
e96a0d6 to
14b10ae
Compare
|
GNU testsuite comparison: |
aa40f09 to
de4e3ec
Compare
|
GNU testsuite comparison: |
de4e3ec to
6143aef
Compare
|
GNU testsuite comparison: |
83c9df8 to
e64a4ce
Compare
|
GNU testsuite comparison: |
e64a4ce to
8e9b3d9
Compare
|
GNU testsuite comparison: |
f782887 to
3eb23ee
Compare
|
GNU testsuite comparison: |
3eb23ee to
b31ffda
Compare
|
GNU testsuite comparison: |
51b3597 to
ba86156
Compare
|
GNU testsuite comparison: |
7d33c02 to
bd35186
Compare
|
GNU testsuite comparison: |
|
This fix feels more like a human rights violation. I'll see how to streamline the checks that have to be done and do it in a more idiomatic Rust way. |
|
GNU testsuite comparison: |
bd35186 to
f617d12
Compare
|
the new "mut" aren't a good sign indeed ;) |
9f17ad4 to
0be3ca6
Compare
|
GNU testsuite comparison: |
|
@sylvestre ready for review |
0be3ca6 to
9ce6794
Compare
|
@sylvestre ready for review |
| source: &Path, | ||
| dest: &Path, | ||
| attributes: &Attributes, | ||
| is_dest_created: bool, |
There was a problem hiding this comment.
in copydirs, you still have a call to this function with 3 parameters
src/uu/cp/src/cp.rs
Outdated
| let perms = source_metadata.permissions(); | ||
| #[cfg(unix)] | ||
| { | ||
| let mut perms = source_metadata.permissions(); |
There was a problem hiding this comment.
you are replacing the previous let perms immediately
please refactor to avoid this
thanks
03ee6de to
3d2f84c
Compare
|
GNU testsuite comparison: |
e0ab439 to
28cef74
Compare
|
GNU testsuite comparison: |
28cef74 to
53ec3df
Compare
… needed changes for the added test
53ec3df to
277763e
Compare
|
GNU testsuite comparison: |
Attempts to fix: #7961