naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
923a60
From c6774e13acf7b3d8783bc5ab31b2ea72b2fc9aaf Mon Sep 17 00:00:00 2001
923a60
From: Michal Sekletar <msekleta@redhat.com>
923a60
Date: Tue, 25 Apr 2017 14:53:47 +0200
923a60
Subject: [PATCH] load-fragment: don't print error about incorrect syntax when
923a60
 IPv6 is disabled
923a60
923a60
(cherry-picked from commit f847b8b7df1de5686f8cbe5a4944a85dfb303595)
923a60
923a60
Resolves: #1377055
923a60
---
923a60
 src/core/load-fragment.c | 5 +++--
923a60
 1 file changed, 3 insertions(+), 2 deletions(-)
923a60
923a60
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c
923a60
index 4114750244..58e44b89b2 100644
923a60
--- a/src/core/load-fragment.c
923a60
+++ b/src/core/load-fragment.c
923a60
@@ -367,8 +367,9 @@ int config_parse_socket_listen(const char *unit,
923a60
 
923a60
                 r = socket_address_parse(&p->address, k ? k : rvalue);
923a60
                 if (r < 0) {
923a60
-                        log_syntax(unit, LOG_ERR, filename, line, -r,
923a60
-                                   "Failed to parse address value, ignoring: %s", rvalue);
923a60
+                        if (r != -EAFNOSUPPORT)
923a60
+                                log_syntax(unit, LOG_ERR, filename, line, -r,
923a60
+                                           "Failed to parse address value, ignoring: %s", rvalue);
923a60
                         return 0;
923a60
                 }
923a60