From: Zbigniew Jędrzejewski-Szmek Date: Mon, 11 Jun 2018 12:37:36 +0000 (+0200) Subject: basic/path-util: fix ordering in error message X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=c1fc133d248627108edd28f86d4ed345d08b5349;p=elogind.git basic/path-util: fix ordering in error message Jun 11 14:29:12 krowka systemd[1]: /etc/systemd/system/workingdir.service:6: = path is not normalizedWorkingDirectory: /../../etc ↓ Jun 11 14:32:12 krowka systemd[1]: /etc/systemd/system/workingdir.service:6: WorkingDirectory= path is not normalized: /../../etc --- diff --git a/src/basic/path-util.c b/src/basic/path-util.c index d7862f139..422543140 100644 --- a/src/basic/path-util.c +++ b/src/basic/path-util.c @@ -1024,14 +1024,14 @@ int path_simplify_and_warn( if (!absolute && (flag & PATH_CHECK_ABSOLUTE)) { log_syntax(unit, LOG_ERR, filename, line, 0, "%s= path is not absolute%s: %s", - fatal ? "" : ", ignoring", lvalue, path); + lvalue, fatal ? "" : ", ignoring", path); return -EINVAL; } if (absolute && (flag & PATH_CHECK_RELATIVE)) { log_syntax(unit, LOG_ERR, filename, line, 0, "%s= path is absolute%s: %s", - fatal ? "" : ", ignoring", lvalue, path); + lvalue, fatal ? "" : ", ignoring", path); return -EINVAL; } } @@ -1041,7 +1041,7 @@ int path_simplify_and_warn( if (!path_is_normalized(path)) { log_syntax(unit, LOG_ERR, filename, line, 0, "%s= path is not normalized%s: %s", - fatal ? "" : ", ignoring", lvalue, path); + lvalue, fatal ? "" : ", ignoring", path); return -EINVAL; }