From: Stuart Henderson Date: Thu, 30 Aug 2012 13:15:05 +0000 (+0100) Subject: Add missing : to getopt string for -p which takes a parameter. X-Git-Tag: v4.07~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8e16a755388ffea541a4543e252ebbe297d2eee8;p=users%2Fdwmw2%2Fopenconnect.git Add missing : to getopt string for -p which takes a parameter. Print an error rather than trying to strdup(NULL) if the parameter is not specified. Signed-off-by: Stuart Henderson Signed-off-by: David Woodhouse --- diff --git a/main.c b/main.c index 25f184bf..a93e10ae 100644 --- a/main.c +++ b/main.c @@ -338,7 +338,7 @@ static int next_option(int argc, char **argv, char **config_arg) next: if (!config_file) { opt = getopt_long(argc, argv, - "bC:c:e:Ddg:hi:k:lpP:Q:qSs:U:u:Vvx:", + "bC:c:e:Ddg:hi:k:lp:P:Q:qSs:U:u:Vvx:", long_options, NULL); *config_arg = optarg;