diff options
author | ingo@mysql.com <> | 2004-05-06 16:15:46 +0200 |
---|---|---|
committer | ingo@mysql.com <> | 2004-05-06 16:15:46 +0200 |
commit | ba0697c6584d20f730148ec8c5171c2aca48086f (patch) | |
tree | 4e767ed3be782df34dd33c1cd368ba3a9c085e41 /client/mysql.cc | |
parent | 943c1b23f3a7d56300334a4d1d6ab1b080886ed3 (diff) | |
download | mariadb-git-ba0697c6584d20f730148ec8c5171c2aca48086f.tar.gz |
Fix a forgotten skip of space at line begin for the 'system' command.
Diffstat (limited to 'client/mysql.cc')
-rw-r--r-- | client/mysql.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index 695cb1f28be..46ade3aef26 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -2042,6 +2042,10 @@ static int com_shell(String *buffer, char *line __attribute__((unused))) { char *shell_cmd; + + /* Skip space from line begin */ + while (isspace(*line)) + line++; if (!(shell_cmd = strchr(line, ' '))) { put_info("Usage: \\! shell-command", INFO_ERROR); |