the following command is allowed at shell, we also make it allowed at virsh shell.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
int sz = 0;
char *p = str;
char *q = vshStrdup(ctl, str);
- char *tkstr = NULL;
*end = NULL;
*res = q;
} else {
tk = VSH_TK_DATA;
}
- tkstr = p; /* begin of token */
}
if (*p == '"') {
vshError(ctl, "%s", _("missing \""));
return VSH_TK_ERROR;
}
- if (tkstr == NULL || *tkstr == '\0' || sz == 0)
- return VSH_TK_END;
*q = '\0';
*end = p;