summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-07-03 20:08:14 +0200
committerLennart Poettering <lennart@poettering.net>2015-07-03 20:08:14 +0200
commit2812dcba85435c59203268ab54901a72c6c24a69 (patch)
tree5a5ea9bfbe5d2aec7bf6aa9804a307cc6d3beb16 /src
parent42ec2c20eacaab3c6f244d3c7784a5908f64d07a (diff)
parentac892057c2ddd8f06323c73ebd80423cc3ec7190 (diff)
Merge pull request #484 from xnox/persistent-journal
journal: in persistent mode create /var/log/journal, with all parents.
Diffstat (limited to 'src')
-rw-r--r--src/journal/journald-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
index f7402984af..46358e1c1a 100644
--- a/src/journal/journald-server.c
+++ b/src/journal/journald-server.c
@@ -943,7 +943,7 @@ static int system_journal_open(Server *s, bool flush_requested) {
* the machine path */
if (s->storage == STORAGE_PERSISTENT)
- (void) mkdir("/var/log/journal/", 0755);
+ (void) mkdir_p("/var/log/journal/", 0755);
fn = strjoina("/var/log/journal/", ids);
(void) mkdir(fn, 0755);