modprobe: Fix assertion on --show-depends with bogus config file
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 21 Mar 2013 05:33:25 +0000 (02:33 -0300)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 21 Mar 2013 05:33:25 +0000 (02:33 -0300)
commitace742fa9aee1aec5931d5ee8a51fa9b8f0d94e0
treefd71e3cd18ef6b16f29289c101015afb2a6efda1
parent5278396d987f5da11ecc3d3e5750083ff1df4f89
modprobe: Fix assertion on --show-depends with bogus config file

Putting something like "alias psmouse deadbeef" is a hackish way to
blacklist a module. While I don't encourage doing so, let's not explode
if we fiund such config files.

A small difference from the behavior of module-init-tools: we exit with
0 instead of 1.
testsuite/test-modprobe.c
tools/modprobe.c