projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
430bf37
)
modprobe: delete perror_exit() that makes no sense
author
Isaac Dunham
<ibid.ag@gmail.com>
Wed, 5 Aug 2015 02:23:55 +0000
(19:23 -0700)
committer
Rob 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
patch
|
blob
|
history
diff --git
a/toys/pending/modprobe.c
b/toys/pending/modprobe.c
index
5431cb3
..
12d2d78
100644
(file)
--- 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;
}