From: Andreas Schneider Date: Mon, 18 Jan 2021 08:02:22 +0000 (+0100) Subject: s3:utils: Remove '-V' for '--viewsddl' from sharesec X-Git-Tag: tevent-0.11.0~744 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f81d8459a48aecf6d342045caa1531234f4f87f;p=thirdparty%2Fsamba.git s3:utils: Remove '-V' for '--viewsddl' from sharesec The '-V' is already used for '-V|--version' in the common options. Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source3/utils/sharesec.c b/source3/utils/sharesec.c index 19841cc5a13..54e78634561 100644 --- a/source3/utils/sharesec.c +++ b/source3/utils/sharesec.c @@ -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;