diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tmpfiles/tmpfiles.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 4bbf9b4ace..8012d0d5df 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -3082,6 +3082,14 @@ static int parse_line( if (r < 0) return r; + if (!path_is_absolute(i.path)) { + *invalid_config = true; + return log_syntax(NULL, LOG_ERR, fname, line, SYNTHETIC_ERRNO(EBADMSG), + "Path '%s' not absolute.", i.path); + } + + path_simplify(i.path); + switch (i.type) { case CREATE_DIRECTORY: @@ -3238,14 +3246,6 @@ static int parse_line( "Unknown command type '%c'.", (char) i.type); } - if (!path_is_absolute(i.path)) { - *invalid_config = true; - return log_syntax(NULL, LOG_ERR, fname, line, SYNTHETIC_ERRNO(EBADMSG), - "Path '%s' not absolute.", i.path); - } - - path_simplify(i.path); - if (!should_include_path(i.path)) return 0; |