teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame 0055-journal-gatewayd-actually-recognize-D-as-a-synonym-f.patch

Zbigniew Jędrzejewski-Szmek 5d6eed
From ce4f32f42dcb91120445d2858baa9fd81abd5292 Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek 5d6eed
From: Ivan Shapovalov <intelfx@intelfx.name>
Zbigniew Jędrzejewski-Szmek 5d6eed
Date: Sun, 29 Jan 2017 23:33:37 +0400
Zbigniew Jędrzejewski-Szmek 5d6eed
Subject: [PATCH] journal-gatewayd: actually recognize -D as a synonym for
Zbigniew Jędrzejewski-Szmek 5d6eed
 --directory (#5180)
Zbigniew Jędrzejewski-Szmek 5d6eed
Zbigniew Jędrzejewski-Szmek 5d6eed
(cherry picked from commit 554597a1b27ad0a81f4ad0884b348d475e89cb9e)
Zbigniew Jędrzejewski-Szmek 5d6eed
---
Zbigniew Jędrzejewski-Szmek 5d6eed
 src/journal-remote/journal-gatewayd.c | 2 +-
Zbigniew Jędrzejewski-Szmek 5d6eed
 1 file changed, 1 insertion(+), 1 deletion(-)
Zbigniew Jędrzejewski-Szmek 5d6eed
Zbigniew Jędrzejewski-Szmek 5d6eed
diff --git a/src/journal-remote/journal-gatewayd.c b/src/journal-remote/journal-gatewayd.c
Zbigniew Jędrzejewski-Szmek 5d6eed
index f75a6f06d2..be6d41c31b 100644
Zbigniew Jędrzejewski-Szmek 5d6eed
--- a/src/journal-remote/journal-gatewayd.c
Zbigniew Jędrzejewski-Szmek 5d6eed
+++ b/src/journal-remote/journal-gatewayd.c
Zbigniew Jędrzejewski-Szmek 5d6eed
@@ -912,7 +912,7 @@ static int parse_argv(int argc, char *argv[]) {
Zbigniew Jędrzejewski-Szmek 5d6eed
         assert(argc >= 0);
Zbigniew Jędrzejewski-Szmek 5d6eed
         assert(argv);
Zbigniew Jędrzejewski-Szmek 5d6eed
 
Zbigniew Jędrzejewski-Szmek 5d6eed
-        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
Zbigniew Jędrzejewski-Szmek 5d6eed
+        while ((c = getopt_long(argc, argv, "hD:", options, NULL)) >= 0)
Zbigniew Jędrzejewski-Szmek 5d6eed
 
Zbigniew Jędrzejewski-Szmek 5d6eed
                 switch(c) {
Zbigniew Jędrzejewski-Szmek 5d6eed