Commit 392757a2 authored by unknown's avatar unknown
Browse files

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


BitKeeper/etc/logging_ok:
  Logging to logging@openlogging.org accepted
parent 63e75e7b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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
+4 −0
Original line number Diff line number Diff line
@@ -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);