1
Fork 0
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:
electricboogie 2021-12-15 15:18:02 -06:00 committed by GitHub
parent d5463ea5b9
commit a1960f5da0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 3 deletions

View file

@ -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!()