Only search path in moddep if it's not already set
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 8 Dec 2011 12:42:34 +0000 (10:42 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 8 Dec 2011 13:15:24 +0000 (11:15 -0200)
commite005facdb9bc99a3aacb55c23260464fb31e25d0
tree6a2e993193a3ce8c864b76a564dd8f532fcbb9c2
parent4eb2c0fca1e8f7a42205b03f57f09abd3c6b4b62
Only search path in moddep if it's not already set

rmmod/insmod should be able to operate directly on files, not relying on
indexes and configuration.

The following test was not working and now it is:

$ # go to a dir != mod->dirname
$ cd /lib/modules/$(uname -r)/kernel
$ # try to insert module giving a relative path
$ insmod drivers/acpi/ac.ko
libkmod/libkmod-module.c