]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tmpfiles: consider an argument of "-" as non-specified
authorLennart Poettering <lennart@poettering.net>
Mon, 20 Apr 2015 23:10:19 +0000 (01:10 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 20 Apr 2015 23:10:19 +0000 (01:10 +0200)
src/tmpfiles/tmpfiles.c

index b7dd37cc336790f9f7620ec98386660937e112e7..8cbeb6729e53d90304b271599a8ebfc0ae465b43 100644 (file)
@@ -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();