aboutsummaryrefslogtreecommitdiffstats
path: root/toolbox
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-01-13 11:30:24 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-01-13 11:30:24 -0800
commitf124435c4604ad5746135acca5cbc682bedba847 (patch)
treed0bceef36b11df5e8750cdf54d215e8f0fd54656 /toolbox
parent7e4c303fe0f490be04400f3f3a08f0c4f5553a96 (diff)
parent82dd6af84676f1ea6f67ce6fbd2c5cea7a8aa601 (diff)
downloadsystem_core-f124435c4604ad5746135acca5cbc682bedba847.tar.gz
system_core-f124435c4604ad5746135acca5cbc682bedba847.tar.bz2
system_core-f124435c4604ad5746135acca5cbc682bedba847.zip
am 82dd6af8: am e7b1f132: Merge "rmmod: fix full path syntax"
* commit '82dd6af84676f1ea6f67ce6fbd2c5cea7a8aa601': rmmod: fix full path syntax
Diffstat (limited to 'toolbox')
-rw-r--r--toolbox/rmmod.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/toolbox/rmmod.c b/toolbox/rmmod.c
index 7e10c061..25257cc3 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';