From 1e93151b79f90c30e24247d4a20db1cef9fe22c8 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Thu, 22 Sep 2011 04:41:31 +0000 Subject: [PATCH] fs_cli: ignore leading spaces on the CLI --- libs/esl/fs_cli.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/esl/fs_cli.c b/libs/esl/fs_cli.c index 4e6b20a2b2..62745e03a3 100644 --- a/libs/esl/fs_cli.c +++ b/libs/esl/fs_cli.c @@ -640,6 +640,7 @@ static const char *cli_usage = static int process_command(esl_handle_t *handle, const char *cmd) { + while (*cmd == ' ') cmd++; if ((*cmd == '/' && cmd++) || !strncasecmp(cmd, "...", 3)) { if (!strcasecmp(cmd, "help")) { printf("%s", cli_usage);