summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-17 15:53:42 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-17 15:53:42 +0200
commitb58b344afd1c6dd4ef2b96451c726571f867d130 (patch)
treef29c57d2cf5920937c27b6b71b5f1dd48a818a59
parentbfba3256a02a0871579c4ee48d787dfe4585fd8d (diff)
journald: properly update perms on freshly rotate user journals
-rw-r--r--src/journal/journald.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald.c b/src/journal/journald.c
index 5de337172e..871bbb636f 100644
--- a/src/journal/journald.c
+++ b/src/journal/journald.c
@@ -347,7 +347,7 @@ static void server_rotate(Server *s) {
log_error("Failed to create user journal: %s", strerror(-r));
else {
hashmap_replace(s->user_journals, k, f);
- server_fix_perms(s, s->system_journal, PTR_TO_UINT32(k));
+ server_fix_perms(s, f, PTR_TO_UINT32(k));
}
}
}