kmod: It's an error not to have modules.devname
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 17 Apr 2013 03:54:17 +0000 (00:54 -0300)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 17 Apr 2013 03:57:11 +0000 (00:57 -0300)
commit279b177de62cd9778ed6b111a11d93d8e18fa169
treec0635f1a939ebf54f33c54b4bf684736fb92addb
parentdb6f2fc7e1152fb9aee8530e85c40bf514457aa4
kmod: It's an error not to have modules.devname

This file is created by depmod even if there's no node. In this case it
will be empty.

Previously 'kmod static-nodes' was segfaulting due to passing in==NULL
to fgets.

Also show the error message with %m.
tools/static-nodes.c