summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-04-12 12:57:41 +0200
committerLennart Poettering <lennart@poettering.net>2012-04-12 12:58:19 +0200
commit2abf99ac076299d80ed595fa4ae5cc46bb455975 (patch)
treeb809958bce58bd45b90a938489b56c0ffba9a652
parent68faf98ca09314b61314ad2ac0cc133c400a83f9 (diff)
journald: add missing flag to open()
-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 1549e6e039..2e2d30f8e8 100644
--- a/src/journal/journald.c
+++ b/src/journal/journald.c
@@ -2480,7 +2480,7 @@ static int open_proc_kmsg(Server *s) {
return 0;
- s->proc_kmsg_fd = open("/proc/kmsg", O_CLOEXEC|O_NONBLOCK|O_NOCTTY);
+ s->proc_kmsg_fd = open("/proc/kmsg", O_RDONLY|O_CLOEXEC|O_NONBLOCK|O_NOCTTY);
if (s->proc_kmsg_fd < 0) {
log_warning("Failed to open /proc/kmsg, ignoring: %m");
return 0;