aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/modprobe.c
diff options
context:
space:
mode:
authorIsaac Dunham <ibid.ag@gmail.com>2015-08-04 19:23:55 -0700
committerRob Landley <rob@landley.net>2015-08-08 16:58:44 -0500
commitda8ad27856dfc6729dac8b6fe87d595a0eb9ca23 (patch)
tree3304dec27833101e6541ca9a1bf11b479f690fe0 /toys/pending/modprobe.c
parent430bf378418e655b06d518a7cd62ae680301af80 (diff)
downloadtoybox-da8ad27856dfc6729dac8b6fe87d595a0eb9ca23.tar.gz
modprobe: delete perror_exit() that makes no sense
Given modprobe -a, it's important to not exit early for a failure to load a module; additionally, the rest of the code presumes that this can fail without exiting.
Diffstat (limited to 'toys/pending/modprobe.c')
-rw-r--r--toys/pending/modprobe.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/toys/pending/modprobe.c b/toys/pending/modprobe.c
index 5431cb35..12d2d783 100644
--- a/toys/pending/modprobe.c
+++ b/toys/pending/modprobe.c
@@ -381,7 +381,6 @@ static int ins_mod(char *modules, char *flags)
}
res = syscall(__NR_init_module, buf, len, toybuf);
if (CFG_TOYBOX_FREE && buf != toybuf) free(buf);
- if (res) perror_exit("failed to load %s ", toys.optargs[0]);
return res;
}