Package: module-init-tools
Version: 3.4-1
Severity: important
Tags: patch
Hi
% modprobe --all foo bar
will attempt loading foo and bar (and output two WARNINGs and exit 0)
% modprobe --all --quiet foo bar
will only attempt to load foo (and output nothing and exit 1)
This is due to the exit(1); around line 1377. Note that error() is
either warn() or fatal().
Please consider the attached patch.
Bye
--
Loïc Minier
--- a/modprobe.c 2008-10-31 11:30:42.000000000 +0100
+++ b/modprobe.c 2008-10-31 11:30:59.000000000 +0100
@@ -1373,9 +1373,8 @@
return;
}
- if (unknown_silent)
- exit(1);
- error("Module %s not found.\n", modname);
+ if (!unknown_silent)
+ error("Module %s not found.\n", modname);
return;
}