journald: add missing flag to open()

This commit is contained in:
Lennart Poettering 2012-04-12 12:57:41 +02:00
parent 68faf98ca0
commit 2abf99ac07

View file

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