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:
David Herrmann 2011-12-31 16:24:14 +01:00
parent fdf73407b7
commit 7af290efbf

View File

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