From da8ad27856dfc6729dac8b6fe87d595a0eb9ca23 Mon Sep 17 00:00:00 2001 From: Isaac Dunham Date: Tue, 4 Aug 2015 19:23:55 -0700 Subject: 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. --- toys/pending/modprobe.c | 1 - 1 file changed, 1 deletion(-) 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; } -- cgit v1.2.3