libsysutils: Send command arguments to the command, not the command again :P
Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
parent
69772dc644
commit
d530592848
1 changed files with 2 additions and 1 deletions
|
|
@ -73,7 +73,8 @@ void FrameworkListener::dispatchCommand(SocketClient *cli, char *cmd) {
|
|||
FrameworkCommand *c = *i;
|
||||
|
||||
if (!strcmp(cm, c->getCommand())) {
|
||||
if (c->runCommand(cli, cmd)) {
|
||||
cm += strlen(cm) +1;
|
||||
if (c->runCommand(cli, cm)) {
|
||||
LOGW("Handler '%s' error (%s)", c->getCommand(), strerror(errno));
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue