From 6390a419539707e3d46bccc57898125164d07d16 Mon Sep 17 00:00:00 2001 From: Jaime Casanova Date: Sun, 13 Jan 2013 16:32:56 -0500 Subject: [PATCH] Options -F -I -v doesn't accept arguments, which means that on getopt_long shouldn't be marked with the colon (:) character. This has been wrong since day one, so backpatching all the way until 1.1 --- repmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repmgr.c b/repmgr.c index 7b74a677..2f877acc 100644 --- a/repmgr.c +++ b/repmgr.c @@ -126,7 +126,7 @@ main(int argc, char **argv) } - while ((c = getopt_long(argc, argv, "d:h:p:U:D:f:R:w:k:F:I:v", long_options, + while ((c = getopt_long(argc, argv, "d:h:p:U:D:f:R:w:k:FIv", long_options, &optindex)) != -1) { switch (c)