1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-16 19:56:17 +00:00

chmod: correctly handle modes after --

This commit is contained in:
Michael Debertol 2021-08-17 15:35:14 +02:00
parent b841a11421
commit 5825889931
2 changed files with 17 additions and 0 deletions

View file

@ -532,3 +532,17 @@ fn test_no_operands() {
.code_is(1)
.stderr_is("chmod: missing operand");
}
#[test]
fn test_mode_after_dash_dash() {
let (at, ucmd) = at_and_ucmd!();
run_single_test(
&TestCase {
args: vec!["--", "-r", TEST_FILE],
before: 0o100777,
after: 0o100333,
},
at,
ucmd,
);
}