modprobe-small: fix recent breakage: modprobe -r was using full path
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 11 Jan 2015 16:40:30 +0000 (17:40 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 11 Jan 2015 16:40:30 +0000 (17:40 +0100)
commit3c75b1c34e56e89aacacc781a97c70eff37bc63d
tree583569360c977c16fa8cbe06ffb9044e64146c4e
parent39f017293a047ac1063c84263d4d855b86c62ba1
modprobe-small: fix recent breakage: modprobe -r was using full path

"modprobe -r MODNAME", after it found the full module pathname,
should strip dirpath before trying to remove the module.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
modutils/modprobe-small.c