1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Fix a forgotten skip of space at line begin for the 'system' command.

This commit is contained in:
ingo@mysql.com
2004-05-06 16:15:46 +02:00
parent 943c1b23f3
commit ba0697c658
2 changed files with 5 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ hf@deer.mysql.r18.ru
hf@genie.(none) hf@genie.(none)
igor@hundin.mysql.fi igor@hundin.mysql.fi
igor@rurik.mysql.com igor@rurik.mysql.com
ingo@mysql.com
jani@dsl-jkl1657.dial.inet.fi jani@dsl-jkl1657.dial.inet.fi
jani@hynda.(none) jani@hynda.(none)
jani@hynda.mysql.fi jani@hynda.mysql.fi

View File

@@ -2042,6 +2042,10 @@ static int
com_shell(String *buffer, char *line __attribute__((unused))) com_shell(String *buffer, char *line __attribute__((unused)))
{ {
char *shell_cmd; char *shell_cmd;
/* Skip space from line begin */
while (isspace(*line))
line++;
if (!(shell_cmd = strchr(line, ' '))) if (!(shell_cmd = strchr(line, ' ')))
{ {
put_info("Usage: \\! shell-command", INFO_ERROR); put_info("Usage: \\! shell-command", INFO_ERROR);