projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
803c85a
)
modprobe-small: fix "modprobe non-existing-module" exitcode (should be 1)
author
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 6 Apr 2017 11:45:00 +0000
(13:45 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 6 Apr 2017 11:45:00 +0000
(13:45 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
modutils/modprobe-small.c
patch
|
blob
|
history
diff --git
a/modutils/modprobe-small.c
b/modutils/modprobe-small.c
index 0c0fe8d5d568fe6c1e7317cc8d72257d091bfa49..1285783d0a4a020976a25c9d7fd52088a4ba77b8 100644
(file)
--- a/
modutils/modprobe-small.c
+++ b/
modutils/modprobe-small.c
@@
-765,9
+765,12
@@
static int process_module(char *name, const char *cmdline_options)
if (!infovec) {
/* both dirscan and find_alias found nothing */
- if (!is_remove && !is_depmod) /* it wasn't rmmod or depmod */
+ if (!is_remove && !is_depmod)
{
/* it wasn't rmmod or depmod */
bb_error_msg("module '%s' not found", name);
//TODO: _and_die()? or should we continue (un)loading modules listed on cmdline?
+ /* "modprobe non-existing-module; echo $?" must print 1 */
+ exitcode = EXIT_FAILURE;
+ }
goto ret;
}