aboutsummaryrefslogtreecommitdiff
path: root/toys/net
diff options
context:
space:
mode:
Diffstat (limited to 'toys/net')
-rw-r--r--toys/net/rfkill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/net/rfkill.c b/toys/net/rfkill.c
index 36fe320d..56e57687 100644
--- a/toys/net/rfkill.c
+++ b/toys/net/rfkill.c
@@ -80,7 +80,7 @@ void rfkill_main(void)
continue;
sprintf(toybuf, "/sys/class/rfkill/rfkill%u/uevent", rfevent.idx);
- tvar = xopen(toybuf, O_RDONLY);
+ tvar = xopenro(toybuf);
while ((line = get_line(tvar))) {
char *s = line;