1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

chmod: ignore symbolic links during recursive directory traversal

This commit is contained in:
xxyzz 2022-03-06 09:38:39 +08:00
parent 3272a590db
commit ce385be575
No known key found for this signature in database
GPG key ID: F796163E6DCFEE9D
2 changed files with 8 additions and 5 deletions

View file

@ -473,8 +473,8 @@ fn test_chmod_symlink_non_existing_file_recursive() {
let expected_stdout = &format!(
// spell-checker:disable-next-line
"mode of '{}' retained as 0755 (rwxr-xr-x)\nneither symbolic link '{}/{}' nor referent has been changed",
test_directory, test_directory, test_symlink
"mode of '{}' retained as 0755 (rwxr-xr-x)",
test_directory
);
// '-v': this should succeed without stderr