diff options
author | unknown <ingo@mysql.com> | 2004-05-06 16:15:46 +0200 |
---|---|---|
committer | unknown <ingo@mysql.com> | 2004-05-06 16:15:46 +0200 |
commit | 392757a2144e8cd82effe2a9065fc84ec63f5680 (patch) | |
tree | 4e767ed3be782df34dd33c1cd368ba3a9c085e41 | |
parent | 63e75e7b851305c1b81f126dda84d1fce99deec2 (diff) | |
download | mariadb-git-392757a2144e8cd82effe2a9065fc84ec63f5680.tar.gz |
Fix a forgotten skip of space at line begin for the 'system' command.
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
-rw-r--r-- | BitKeeper/etc/logging_ok | 1 | ||||
-rw-r--r-- | client/mysql.cc | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/BitKeeper/etc/logging_ok b/BitKeeper/etc/logging_ok index b805749821c..a51078f675f 100644 --- a/BitKeeper/etc/logging_ok +++ b/BitKeeper/etc/logging_ok @@ -39,6 +39,7 @@ hf@deer.mysql.r18.ru hf@genie.(none) igor@hundin.mysql.fi igor@rurik.mysql.com +ingo@mysql.com jani@dsl-jkl1657.dial.inet.fi jani@hynda.(none) jani@hynda.mysql.fi 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); |