From 4f81d8459a48aecf6d342045caa1531234f4f87f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 18 Jan 2021 09:02:22 +0100 Subject: [PATCH] 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 --- source3/utils/sharesec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.47.3