anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0485-load-fragment-don-t-print-error-about-incorrect-synt.patch

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