We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b051e6a commit 6d75e6eCopy full SHA for 6d75e6e
tests/on_unix.rs
@@ -93,8 +93,8 @@ mod to_string {
93
// We're gonna be mucking around with setuid files, so exercise a little bit of caution
94
std::fs::set_permissions(tmp_dir.path(), Permissions::from_mode(0o700)).unwrap();
95
let f = &tmp_dir.path().join("f");
96
- std::fs::write(f, &[0]).unwrap();
97
- std::fs::set_permissions(f, Permissions::from_mode(0)).unwrap();
+ std::fs::write(f, [0]).unwrap();
+ std::fs::set_permissions(f, Permissions::from_mode(0o0)).unwrap();
98
let chmod = Command::new("chmod").arg(chmod_to).arg(f).output().unwrap();
99
println!("chmod {:#?}", chmod);
100
assert_eq!(to_string(file_mode(f)), expect_mode);
0 commit comments