journald: add missing flag to open()
This commit is contained in:
parent
68faf98ca0
commit
2abf99ac07
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue