From 86ab333d00ca39c5c95174513db40546cb1268d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 11 Jun 2018 14:37:36 +0200 Subject: [PATCH] basic/path-util: fix ordering in error message MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/basic/path-util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/basic/path-util.c b/src/basic/path-util.c index 547b38e..f36301c 100644 --- a/src/basic/path-util.c +++ b/src/basic/path-util.c @@ -1014,14 +1014,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; } } @@ -1031,7 +1031,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; } -- 2.7.4