summaryrefslogtreecommitdiffstats
path: root/src/journal-remote/journal-gatewayd.c
diff options
context:
space:
mode:
authorYi EungJun <semtlenori@gmail.com>2017-01-30 16:24:06 +0100
committerEvgeny Vereshchagin <evvers@ya.ru>2017-01-30 16:24:06 +0100
commit3ab2feefd7d1918e8f0d0edaea46a87cbed0f211 (patch)
tree8efd273e799c6fa23ef8939685f35ac1dc92e472 /src/journal-remote/journal-gatewayd.c
parentjournal-gatewayd: actually recognize -D as a synonym for --directory (#5180) (diff)
downloadsystemd-3ab2feefd7d1918e8f0d0edaea46a87cbed0f211.tar.xz
systemd-3ab2feefd7d1918e8f0d0edaea46a87cbed0f211.zip
journal-gatewayd: return -EINVAL if ARG_TRUST and HAVE_GNUTLS (#5181)
This bug was introduced by 1aa1e59.
Diffstat (limited to 'src/journal-remote/journal-gatewayd.c')
-rw-r--r--src/journal-remote/journal-gatewayd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/journal-remote/journal-gatewayd.c b/src/journal-remote/journal-gatewayd.c
index 3616017918..f86b67faa2 100644
--- a/src/journal-remote/journal-gatewayd.c
+++ b/src/journal-remote/journal-gatewayd.c
@@ -958,6 +958,7 @@ static int parse_argv(int argc, char *argv[]) {
break;
#else
log_error("Option --trust is not available.");
+ return -EINVAL;
#endif
case 'D':
arg_directory = optarg;