coreutils
coreutils copied to clipboard
cp: parent-perm-race gnu fix
Hi, this pr tries to fix parent-perm-race gnu test case. this test tries to check the temporary permissions of directories created by cp which might be too permissive under some conditions.
This is how gnu's cp behaves, when --preserve=mode or --preserve=ownership is given whenever it creates a directory it disables some permissions for group and others. I'm not entirely sure why gnu's cp is doing this, but my assumption is that when the user tries to preserve mode or ownership they're expecting some security guarantees in the destination directory, but having permissions that are too permissive even for a short period of time might compromise that security guarantee.
#4211 is a pr that fixes a similar issue
GNU testsuite comparison:
Congrats! The gnu test tests/cp/parent-perm-race is no longer failing!
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)
GNU testsuite comparison:
Congrats! The gnu test tests/cp/parent-perm-race is no longer failing!
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)
GNU testsuite comparison:
Skip an intermittent issue tests/tail/inotify-dir-recreate (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/cp/parent-perm-race is no longer failing!
GNU testsuite comparison:
Congrats! The gnu test tests/cp/parent-perm-race is no longer failing!
GNU testsuite comparison:
Skip an intermittent issue tests/tail/inotify-dir-recreate (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/cp/parent-perm-race is no longer failing!
GNU testsuite comparison:
Congrats! The gnu test tests/cp/parent-perm-race is no longer failing!
terrific!