]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:utils: Remove '-V' for '--viewsddl' from sharesec
authorAndreas Schneider <asn@samba.org>
Mon, 18 Jan 2021 08:02:22 +0000 (09:02 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 25 May 2021 00:23:37 +0000 (00:23 +0000)
The '-V' is already used for '-V|--version' in the common options.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/utils/sharesec.c

index 19841cc5a13f5931b688f3273c2f4869020aa644..54e78634561e17b0060114e720b2b7539b52337d 100644 (file)
@@ -321,6 +321,7 @@ static int view_sharesec_sddl(const char *sharename)
 
 enum {
        OPT_VIEW_ALL = 1000,
+       OPT_VIEW_SDDL,
 };
 
 int main(int argc, const char *argv[])
@@ -390,10 +391,9 @@ int main(int argc, const char *argv[])
                },
                {
                        .longName   = "viewsddl",
-                       .shortName  = 'V',
                        .argInfo    = POPT_ARG_NONE,
                        .arg        = the_acl,
-                       .val        = 'V',
+                       .val        = OPT_VIEW_SDDL,
                        .descrip    = "View the SD in sddl format",
                },
                {
@@ -480,7 +480,7 @@ int main(int argc, const char *argv[])
                        the_acl = smb_xstrdup(poptGetOptArg(pc));
                        break;
 
-               case 'V':
+               case OPT_VIEW_SDDL:
                        mode = SMB_SD_VIEWSDDL;
                        break;