summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'toolbox/getevent.c')
-rw-r--r--toolbox/getevent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolbox/getevent.c b/toolbox/getevent.c
index 1fb315cb5..e6def6bae 100644
--- a/toolbox/getevent.c
+++ b/toolbox/getevent.c
@@ -321,7 +321,7 @@ static int open_device(const char *device, int print_flags)
321 char idstr[80]; 321 char idstr[80];
322 struct input_id id; 322 struct input_id id;
323 323
324 fd = open(device, O_RDONLY); 324 fd = open(device, O_RDWR);
325 if(fd < 0) { 325 if(fd < 0) {
326 if(print_flags & PRINT_DEVICE_ERRORS) 326 if(print_flags & PRINT_DEVICE_ERRORS)
327 fprintf(stderr, "could not open %s, %s\n", device, strerror(errno)); 327 fprintf(stderr, "could not open %s, %s\n", device, strerror(errno));