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