journald: add missing flag to open()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user