[BusyBox-cvs] CVS busybox/modutils

CVS User bug1 bug1 at codepoet.org
Fri Sep 24 09:18:55 UTC 2004


Update of /var/cvs/busybox/modutils
In directory nail:/tmp/cvs-serv6555/modutils

Modified Files:
	modprobe.c 
Log Message:
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.


--- /var/cvs/busybox/modutils/modprobe.c	2004/08/19 18:30:31	1.40
+++ /var/cvs/busybox/modutils/modprobe.c	2004/09/24 09:18:55	1.41
@@ -470,6 +470,11 @@
 			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 )) {



More information about the busybox-cvs mailing list