From: Noel Power Date: Wed, 17 Aug 2022 14:39:19 +0000 (+0100) Subject: s3/utils: Add recursive option to smcacls X-Git-Tag: talloc-2.4.2~770 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd2133ba4862add1943e1a08469780695874f06c;p=thirdparty%2Fsamba.git 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 --- 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,