journald: properly update perms on freshly rotate user journals

This commit is contained in:
Lennart Poettering 2012-09-17 15:53:42 +02:00
parent bfba3256a0
commit b58b344afd

View File

@ -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));
}
}
}