OSDN Git Service

Make xopen() skip stdin/stdout/stderr, add xopen_stdio() if you want stdout,
[android-x86/external-toybox.git] / toys / net / rfkill.c
index 36fe320..56e5768 100644 (file)
@@ -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;