From dd2133ba4862add1943e1a08469780695874f06c Mon Sep 17 00:00:00 2001 From: Noel Power Date: Wed, 17 Aug 2022 15:39:19 +0100 Subject: [PATCH] s3/utils: Add recursive option to smcacls Adds new switch (and associated help) note: nothing using it yet Subsequent following commits will make use of this option with 'save' functionality Signed-off-by: Noel Power Reviewed-by: Andrew Bartlett --- source3/utils/smbcacls.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index 93323aa33e9..dc11febfb8c 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -40,6 +40,7 @@ static char DIRSEP_CHAR = '\\'; static int inheritance = 0; static const char *save_file = NULL; static const char *restore_file = NULL; +static int recurse; static int test_args; static int sddl; static int query_sec_info = -1; @@ -1598,6 +1599,16 @@ int main(int argc, char *argv[]) .descrip = "applies the stored DACLS to files in " "directory.", }, + { + .longName = "recurse", + .shortName = 0, + .argInfo = POPT_ARG_NONE, + .arg = &recurse, + .val = 1, + .descrip = "indicates the operation is performed " + "on directory and all files/directories" + " below. (only applies to save option)", + }, { .longName = "numeric", .shortName = 0, -- 2.34.1