<div dir="ltr">I broke this when I added the masking out of the S_IFMT bits for macOS,<br>because string_to_mode needs the full mode with those extra bits,<br>specifically so that it can recognize directories for +X to work.<br><br>I've duplicated chtest rather than change chtest to explicitly set the<br>modes to 000 before running the given chmod command because I didn't<br>want to touch *all* the tests and obscure the addition of just one.<br>---<br> tests/chmod.test   | 5 +++++<br> toys/posix/chmod.c | 2 +-<br> 2 files changed, 6 insertions(+), 1 deletion(-)<br></div>