summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-06-11 14:37:36 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commitc1fc133d248627108edd28f86d4ed345d08b5349 (patch)
treef84de955c92b2e31dcc698174c601177661daf43 /src/basic
parentf6d804bc4caa5d0187d672a5f643e5b8cd1980ed (diff)
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
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/path-util.c6
1 files changed, 3 insertions, 3 deletions
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;
}