mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Merge pull request #810 from ebfe/tests-chmod
tests/chmod: fix tests on nightly
This commit is contained in:
commit
9d041cdd7d
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ struct TestCase {
|
|||
}
|
||||
|
||||
fn mkfile(file: &str, mode: mode_t) {
|
||||
std::fs::OpenOptions::new().mode(mode).create(true).open(file).unwrap();
|
||||
std::fs::OpenOptions::new().mode(mode).create(true).write(true).open(file).unwrap();
|
||||
let mut perms = std::fs::metadata(file).unwrap().permissions();
|
||||
perms.set_mode(mode);
|
||||
std::fs::set_permissions(file, perms).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue