diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-04-12 12:57:41 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-04-12 12:58:19 +0200 |
commit | 2abf99ac076299d80ed595fa4ae5cc46bb455975 (patch) | |
tree | b809958bce58bd45b90a938489b56c0ffba9a652 /src/journal/journald.c | |
parent | execute: when we can't get the requested rlimit, get the next closest (diff) | |
download | systemd-2abf99ac076299d80ed595fa4ae5cc46bb455975.tar.xz systemd-2abf99ac076299d80ed595fa4ae5cc46bb455975.zip |
journald: add missing flag to open()
Diffstat (limited to '')
-rw-r--r-- | src/journal/journald.c | 2 |
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; |