From 076f4d0b6beb14823ed7f23365be8a1df2cfded6 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 15 Sep 2022 04:32:23 +0000 Subject: ntux_cmd_chmod(): apply '+p' to permissions inherited via '+P' as needed. --- src/cmds/ntux_cmd_chmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3