From: William Lallemand Date: Mon, 19 Jun 2017 14:37:19 +0000 (+0200) Subject: MINOR: warning on multiple -x X-Git-Tag: v1.8-dev3~283 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4fc09693d6f466ddf6b0721b20841d056759755a;p=thirdparty%2Fhaproxy.git MINOR: warning on multiple -x Multiple use of the -x option is useless, emit a warning. --- diff --git a/src/haproxy.c b/src/haproxy.c index 2fd387f3ef..1eabb55294 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -1283,7 +1283,10 @@ static void init(int argc, char **argv) Alert("Unix socket path expected with the -x flag\n\n"); usage(progname); } + if (old_unixsocket) + Warning("-x option already set, overwriting the value\n"); old_unixsocket = argv[1]; + argv++; argc--; }