input: fix open() call parameters
Third argument of open() is for file creation flags and nor for file open flags. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
fdf73407b7
commit
7af290efbf
@ -148,7 +148,7 @@ int kmscon_input_device_wake_up(struct kmscon_input_device *device)
|
||||
if (device->fd)
|
||||
return 0;
|
||||
|
||||
device->rfd = open(device->devnode, O_CLOEXEC | O_NONBLOCK, O_RDONLY);
|
||||
device->rfd = open(device->devnode, O_CLOEXEC | O_NONBLOCK | O_RDONLY);
|
||||
if (device->rfd < 0) {
|
||||
log_warning("input: cannot open input device %s: %d\n",
|
||||
device->devnode, errno);
|
||||
|
Loading…
x
Reference in New Issue
Block a user