diff options
Diffstat (limited to 'firmware/target/hosted/sonynwz/button-nwz.c')
-rw-r--r-- | firmware/target/hosted/sonynwz/button-nwz.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/hosted/sonynwz/button-nwz.c b/firmware/target/hosted/sonynwz/button-nwz.c index 2fb23e1471..f85a4be496 100644 --- a/firmware/target/hosted/sonynwz/button-nwz.c +++ b/firmware/target/hosted/sonynwz/button-nwz.c @@ -156,7 +156,7 @@ static void key_init_state(int fd) static void open_input_device(const char *path) { - int fd = open(path, O_RDWR); + int fd = open(path, O_RDONLY | O_CLOEXEC); if(fd < 0) return; /* query name */ |