From 8e16a755388ffea541a4543e252ebbe297d2eee8 Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Thu, 30 Aug 2012 14:15:05 +0100 Subject: [PATCH] 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 --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 25f184b..a93e10a 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; -- 2.7.4