modprobe: delete perror_exit() that makes no sense
authorIsaac Dunham <ibid.ag@gmail.com>
Wed, 5 Aug 2015 02:23:55 +0000 (19:23 -0700)
committerRob Landley <rob@landley.net>
Sat, 8 Aug 2015 21:58:44 +0000 (16:58 -0500)
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

index 5431cb3..12d2d78 100644 (file)
@@ -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;
 }