[Toybox] [PATCH] chmod: fix +X.
enh
enh at google.com
Mon Mar 15 17:11:17 PDT 2021
I broke this when I added the masking out of the S_IFMT bits for macOS,
because string_to_mode needs the full mode with those extra bits,
specifically so that it can recognize directories for +X to work.
I've duplicated chtest rather than change chtest to explicitly set the
modes to 000 before running the given chmod command because I didn't
want to touch *all* the tests and obscure the addition of just one.
---
tests/chmod.test | 5 +++++
toys/posix/chmod.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210315/1a443e86/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-chmod-fix-X.patch
Type: text/x-patch
Size: 1797 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210315/1a443e86/attachment-0002.bin>
More information about the Toybox
mailing list