mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Fix cp bug: pre-write permission change (#2769)
This commit is contained in:
parent
d5463ea5b9
commit
a1960f5da0
2 changed files with 15 additions and 3 deletions
|
@ -725,6 +725,12 @@ fn test_cp_parents_dest_not_directory() {
|
|||
.stderr_contains("with --parents, the destination must be a directory");
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn test_cp_writable_special_file_permissions() {
|
||||
new_ucmd!().arg("/dev/null").arg("/dev/zero").succeeds();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_cp_preserve_no_args() {
|
||||
new_ucmd!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue