Skip to content

Conversation

@nikolalukovic
Copy link

Attempts to fix: #7961

@nikolalukovic nikolalukovic force-pushed the fix/7961 branch 2 times, most recently from e5a0699 to e96a0d6 Compare December 23, 2025 14:21
@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/cp/existing-perm-dir. tests/cp/existing-perm-dir is passing on 'main'. Maybe you have to rebase?
Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)
Note: The gnu test tests/csplit/csplit-heap is now being skipped but was previously passing.
Note: The gnu test tests/cut/cut-huge-range is now being skipped but was previously passing.
Note: The gnu test tests/printf/printf-surprise is now being skipped but was previously passing.
Note: The gnu test tests/tail/inotify-dir-recreate is now being skipped but was previously passing.

@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/cp/existing-perm-dir. tests/cp/existing-perm-dir is passing on 'main'. Maybe you have to rebase?
Note: The gnu test tests/tail/inotify-dir-recreate is now being skipped but was previously passing.

@nikolalukovic nikolalukovic force-pushed the fix/7961 branch 2 times, most recently from aa40f09 to de4e3ec Compare December 23, 2025 16:19
@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/cp/existing-perm-dir. tests/cp/existing-perm-dir is passing on 'main'. Maybe you have to rebase?
Note: The gnu test tests/tail/inotify-dir-recreate is now being skipped but was previously passing.

@nikolalukovic nikolalukovic marked this pull request as draft December 23, 2025 20:41
@github-actions
Copy link

GNU testsuite comparison:

Note: The gnu test tests/id/smack was skipped on 'main' but is now failing.
Note: The gnu test tests/mkdir/smack-no-root was skipped on 'main' but is now failing.
Note: The gnu test tests/mkdir/smack-root was skipped on 'main' but is now failing.

@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/cp/preserve-mode. tests/cp/preserve-mode is passing on 'main'. Maybe you have to rebase?

@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/cp/preserve-mode. tests/cp/preserve-mode is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/tail/retry. tests/tail/retry is passing on 'main'. Maybe you have to rebase?

@nikolalukovic nikolalukovic force-pushed the fix/7961 branch 2 times, most recently from f782887 to 3eb23ee Compare January 4, 2026 14:27
@github-actions
Copy link

github-actions bot commented Jan 4, 2026

GNU testsuite comparison:

GNU test failed: tests/cp/preserve-mode. tests/cp/preserve-mode is passing on 'main'. Maybe you have to rebase?

@github-actions
Copy link

github-actions bot commented Jan 4, 2026

GNU testsuite comparison:

GNU test failed: tests/cp/preserve-mode. tests/cp/preserve-mode is passing on 'main'. Maybe you have to rebase?

@github-actions
Copy link

github-actions bot commented Jan 4, 2026

GNU testsuite comparison:

Congrats! The gnu test tests/printf/printf-surprise is now passing!

@nikolalukovic nikolalukovic force-pushed the fix/7961 branch 2 times, most recently from 7d33c02 to bd35186 Compare January 4, 2026 16:39
@github-actions
Copy link

github-actions bot commented Jan 4, 2026

GNU testsuite comparison:

GNU test failed: tests/shuf/shuf-reservoir. tests/shuf/shuf-reservoir is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/sort/sort-stale-thread-mem. tests/sort/sort-stale-thread-mem is passing on 'main'. Maybe you have to rebase?

@nikolalukovic
Copy link
Author

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.

@github-actions
Copy link

github-actions bot commented Jan 4, 2026

GNU testsuite comparison:

Congrats! The gnu test tests/printf/printf-surprise is now passing!

@sylvestre
Copy link
Contributor

the new "mut" aren't a good sign indeed ;)

@github-actions
Copy link

github-actions bot commented Jan 8, 2026

GNU testsuite comparison:

Skipping an intermittent issue tests/tty/tty-eof (passes in this run but fails in the 'main' branch)

@github-actions
Copy link

github-actions bot commented Jan 8, 2026

GNU testsuite comparison:

Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tty/tty-eof (passes in this run but fails in the 'main' branch)

@nikolalukovic nikolalukovic marked this pull request as ready for review January 8, 2026 16:13
@nikolalukovic nikolalukovic force-pushed the fix/7961 branch 3 times, most recently from 9f17ad4 to 0be3ca6 Compare January 9, 2026 11:05
@github-actions
Copy link

github-actions bot commented Jan 9, 2026

GNU testsuite comparison:

Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@nikolalukovic
Copy link
Author

@sylvestre ready for review

@nikolalukovic
Copy link
Author

@sylvestre ready for review

source: &Path,
dest: &Path,
attributes: &Attributes,
is_dest_created: bool,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in copydirs, you still have a call to this function with 3 parameters

let perms = source_metadata.permissions();
#[cfg(unix)]
{
let mut perms = source_metadata.permissions();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are replacing the previous let perms immediately
please refactor to avoid this
thanks

@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/shuf/shuf-reservoir (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/sort/sort-stale-thread-mem (passes in this run but fails in the 'main' branch)

@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cp behaves differently on read-only directories

2 participants