From 672b237c4ef41be12b71023d81e5b4cbc856f0db Mon Sep 17 00:00:00 2001 From: Jaime Casanova Date: Sun, 13 Jan 2013 16:32:56 -0500 Subject: [PATCH] Options -F -W -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 165be365..6e6c1cb6 100644 --- a/repmgr.c +++ b/repmgr.c @@ -134,7 +134,7 @@ main(int argc, char **argv) } - while ((c = getopt_long(argc, argv, "d:h:p:U:D:l:f:R:w:k:F:W:I:v", long_options, + while ((c = getopt_long(argc, argv, "d:h:p:U:D:l:f:R:w:k:FWIv", long_options, &optindex)) != -1) { switch (c)