mirror of
https://git.busybox.net/busybox.git
synced 2024-12-11 14:34:36 +08:00
Patch from Egor Duda
Attached patch prevents modprobe from trying to call 'insmod (null)' whenever nonexistent module is either passed to modprobe via command line or mentioned in modules.dep this replaces cryptic error sh: Syntax error: word unexpected (expecting ")") with modprobe: module some-module not found. egor.
This commit is contained in:
parent
53090cdedd
commit
bdf6319d3a
@ -470,6 +470,11 @@ static void check_dep ( char *mod, struct mod_list_t **head, struct mod_list_t *
|
||||
return;
|
||||
}
|
||||
|
||||
if ( !path ) {
|
||||
bb_error_msg ("module %s not found.", mod);
|
||||
return;
|
||||
}
|
||||
|
||||
// search for duplicates
|
||||
for ( find = *head; find; find = find-> m_next ) {
|
||||
if ( !strcmp ( mod, find-> m_name )) {
|
||||
|
Loading…
Reference in New Issue
Block a user