]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/utils: Add recursive option to smcacls
authorNoel Power <noel.power@suse.com>
Wed, 17 Aug 2022 14:39:19 +0000 (15:39 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 Nov 2023 04:05:34 +0000 (04:05 +0000)
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 <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/utils/smbcacls.c

index 93323aa33e9fe3abf394e2327e8d1eec73ad8c0e..dc11febfb8c10ed99d92991e3064e9fae09e470f 100644 (file)
@@ -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,