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:
San Mehat 2009-05-12 14:35:15 -07:00
parent 69772dc644
commit d530592848

View file

@ -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;