lib/cmdline: fix --configfile handling of POPT_COMMON_CONFIG_ONLY used by ntlm_auth
authorStefan Metzmacher <metze@samba.org>
Thu, 9 Sep 2021 09:11:03 +0000 (11:11 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 10 Sep 2021 15:10:30 +0000 (15:10 +0000)
ntlm_auth only every knew about '--configfile' without the '-s' alias,
keep it that way and make sure we actually process the argument via
the OPT_CONFIGFILE handling.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14828

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/cmdline/cmdline.c

index a299a229f6955af6a0bb1f9a0e80f0bd68807450..b22306963a5b91f6a8da5adc20382f0cbb914ba6 100644 (file)
@@ -487,9 +487,8 @@ static struct poptOption popt_common_config[] = {
        },
        {
                .longName   = "configfile",
-               .shortName  = 's',
                .argInfo    = POPT_ARG_STRING,
-               .val        = 's',
+               .val        = OPT_CONFIGFILE,
                .descrip    = "Use alternative configuration file",
                .argDescrip = "CONFIGFILE",
        },