(execute): Use player->comtail[1] instead of player->argp[1]. This

makes execute send everything after the command back to the client
verbatim, not just the first argument (with quotes and funny
characters stripped).  The client always expected that, and got
confused when the server sent something else.
This commit is contained in:
Markus Armbruster 2007-11-25 14:06:53 +00:00
parent 90631d56ed
commit 698322553a

View file

@ -278,8 +278,10 @@ execute(void)
failed = 0;
redir = NULL;
/* FIXME should use raw argument here, to support UTF-8 file names */
p = getstarg(player->argp[1], "File? ", buf);
if (player->comtail[1])
p = player->comtail[1];
else
p = getstring("File? ", buf);
if (p == NULL || *p == '\0')
return RET_SYN;
prexec(p);