summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2022-09-15 04:32:23 +0000
committermidipix <writeonce@midipix.org>2022-09-15 04:32:23 +0000
commit076f4d0b6beb14823ed7f23365be8a1df2cfded6 (patch)
treea21ba34877cf013ec41ab4a43472e24355c2fa7a
parent1e08b3b353c93a92d27130dc6482af9c780b6b51 (diff)
downloadntux-076f4d0b6beb14823ed7f23365be8a1df2cfded6.tar.bz2
ntux-076f4d0b6beb14823ed7f23365be8a1df2cfded6.tar.xz
ntux_cmd_chmod(): apply '+p' to permissions inherited via '+P' as needed.
-rw-r--r--src/cmds/ntux_cmd_chmod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmds/ntux_cmd_chmod.c b/src/cmds/ntux_cmd_chmod.c
index 773c8ea..a0fec1d 100644
--- a/src/cmds/ntux_cmd_chmod.c
+++ b/src/cmds/ntux_cmd_chmod.c
@@ -495,7 +495,7 @@ int ntux_cmd_chmod(const struct ntux_driver_ctx * dctx, const char * dunit)
if (srcace->header.ace_flags & exacefilter) {
ntux_memcpy(dstace,srcace,srcace->header.ace_size);
- dstace->header.ace_flags = NT_ACE_INHERITED;
+ dstace->header.ace_flags = NT_ACE_INHERITED | ace_flags;
aceaddr += srcace->header.ace_size;
dstace = (struct ntux_ace_any *)aceaddr;