Merge "rmmod: fix full path syntax"
This commit is contained in:
commit
e7b1f132c2
1 changed files with 2 additions and 0 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue