diff options
author | Tanguy Pruvot <tanguy.pruvot@gmail.com> | 2011-09-01 13:16:18 +0200 |
---|---|---|
committer | Tanguy Pruvot <tanguy.pruvot@gmail.com> | 2012-01-12 20:44:02 +0100 |
commit | ec4db51f88401ecf09769511e3c9deb58d721184 (patch) | |
tree | 3db8676b32f18af558996b8b24ffb001d9cc6f58 /toolbox/rmmod.c | |
parent | f90b0e04a61ab3bf5239afb2f7157aabe5fbca8f (diff) | |
download | system_core-ec4db51f88401ecf09769511e3c9deb58d721184.zip system_core-ec4db51f88401ecf09769511e3c9deb58d721184.tar.gz system_core-ec4db51f88401ecf09769511e3c9deb58d721184.tar.bz2 |
rmmod: fix full path syntax
rmmod /system/modules/multitouch.ko
rmmod: delete_module '/multitouch' failed (errno 2)
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Diffstat (limited to 'toolbox/rmmod.c')
-rw-r--r-- | toolbox/rmmod.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toolbox/rmmod.c b/toolbox/rmmod.c index 7e10c06..25257cc 100644 --- a/toolbox/rmmod.c +++ b/toolbox/rmmod.c @@ -25,6 +25,8 @@ int rmmod_main(int argc, char **argv) modname = strrchr(argv[1], '/'); if (!modname) modname = argv[1]; + else modname++; + dot = strchr(argv[1], '.'); if (dot) *dot = '\0'; |