summaryrefslogtreecommitdiffstats
path: root/toolbox
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2017-02-21 16:46:50 +0000
committerMichael Wright <michaelwr@google.com>2017-02-21 17:12:59 +0000
commit14667c19cdf8fa4b9fb6661cdd610f60556a4f5d (patch)
tree6078999ca8d83d53043f5628b2a40d5aa39008b6 /toolbox
parentee57bbd9f8d5db8ea1bbc824eeb446e44e130319 (diff)
downloadsystem_core-14667c19cdf8fa4b9fb6661cdd610f60556a4f5d.tar.gz
system_core-14667c19cdf8fa4b9fb6661cdd610f60556a4f5d.tar.bz2
system_core-14667c19cdf8fa4b9fb6661cdd610f60556a4f5d.zip
Revert "Only allow system to write to existing input nodes."
This reverts commit 344e929e6d8cc2925e55d7f72262002fcc181f52. Bug: 35301292 Change-Id: Ib6805c986c0aa88d14652de59ad4602b1cce8b56
Diffstat (limited to 'toolbox')
-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)
char idstr[80];
struct input_id id;
- fd = open(device, O_RDONLY);
+ fd = open(device, O_RDWR);
if(fd < 0) {
if(print_flags & PRINT_DEVICE_ERRORS)
fprintf(stderr, "could not open %s, %s\n", device, strerror(errno));