load-fragment: don't print error about incorrect syntax when IPv6 is disabled (#5791)
authorMichal Sekletar <msekletar@users.noreply.github.com>
Tue, 25 Apr 2017 07:31:52 +0000 (09:31 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 25 Apr 2017 07:31:52 +0000 (09:31 +0200)
src/core/load-fragment.c

index 8cd79c3..af3c6a4 100644 (file)
@@ -392,7 +392,9 @@ int config_parse_socket_listen(const char *unit,
 
                 r = socket_address_parse_and_warn(&p->address, k);
                 if (r < 0) {
-                        log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse address value, ignoring: %s", rvalue);
+                        if (r != -EAFNOSUPPORT)
+                                log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse address value, ignoring: %s", rvalue);
+
                         return 0;
                 }