summaryrefslogtreecommitdiff
path: root/src/journal/journald.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-01-03 21:02:13 +0100
committerLennart Poettering <lennart@poettering.net>2012-01-03 21:08:58 +0100
commit52f4f45bf48cfb757024f9abf49f1533b661397a (patch)
tree5447b910e7c0161debb6c2a1ed42d49feaead676 /src/journal/journald.c
parent85d83bf41c8bdf55c10b7f845d81e5787ef6c295 (diff)
journald: treat a read-only /var identical to an unmounted one
Diffstat (limited to 'src/journal/journald.c')
-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 44c2aa4385..5c8e713657 100644
--- a/src/journal/journald.c
+++ b/src/journal/journald.c
@@ -1196,7 +1196,7 @@ static int system_journal_open(Server *s) {
fix_perms(s->system_journal, 0);
} else if (r < 0) {
- if (r == -ENOENT)
+ if (r == -ENOENT || r == -EROFS)
r = 0;
else {
log_error("Failed to open system journal: %s", strerror(-r));