From 1a701545aae73cd060c31fd5a2d818ac558a5b96 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 11 Jan 2021 04:20:40 +0100 Subject: Fix parsing -S as short option for --socket --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index a82cb0c..c1d1edf 100644 --- a/src/main.c +++ b/src/main.c @@ -556,11 +556,11 @@ static void parse_opts(int argc, char **argv) int c; #ifdef HAVE_SYSTEMD - const char* opts_spec = "hfvVuU:xXsnzl:p"; + const char* opts_spec = "hfvVuU:xXsnzl:pS:"; #elif HAVE_UDEV - const char* opts_spec = "hfvVuU:xXnzl:p"; + const char* opts_spec = "hfvVuU:xXnzl:pS:"; #else - const char* opts_spec = "hfvVU:xXnzl:p"; + const char* opts_spec = "hfvVU:xXnzl:pS:"; #endif while (1) { -- cgit v1.1-32-gdbae