aboutsummaryrefslogtreecommitdiff
path: root/toys/other/insmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other/insmod.c')
-rw-r--r--toys/other/insmod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/insmod.c b/toys/other/insmod.c
index 18ac9176..9a3f5958 100644
--- a/toys/other/insmod.c
+++ b/toys/other/insmod.c
@@ -25,7 +25,7 @@ config INSMOD
void insmod_main(void)
{
- int fd = !strcmp(*toys.optargs, "-") ? 0 : xopen(*toys.optargs, O_RDONLY);
+ int fd = xopenro(*toys.optargs);
int i, rc;
i = 1;