summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-21 01:10:19 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-21 01:10:19 +0200
commitaa5f6817bcb4cfea8708edf765358f4f507d5923 (patch)
tree4e87a96e1972111a9bf3a71df9a3b54dc8c84142
parent0f51442056157cfec2efc52ddbff7392b0ff674a (diff)
tmpfiles: consider an argument of "-" as non-specified
-rw-r--r--src/tmpfiles/tmpfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index b7dd37cc33..8cbeb6729e 100644
--- a/src/tmpfiles/tmpfiles.c
+++ b/src/tmpfiles/tmpfiles.c
@@ -1760,7 +1760,7 @@ static int parse_line(const char *fname, unsigned line, const char *buffer) {
return -EIO;
}
- if (!isempty(buffer)) {
+ if (!isempty(buffer) && !streq(buffer, "-")) {
i.argument = strdup(buffer);
if (!i.argument)
return log_oom();