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