(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:
parent
90631d56ed
commit
698322553a
1 changed files with 4 additions and 2 deletions
|
@ -278,8 +278,10 @@ execute(void)
|
||||||
failed = 0;
|
failed = 0;
|
||||||
redir = NULL;
|
redir = NULL;
|
||||||
|
|
||||||
/* FIXME should use raw argument here, to support UTF-8 file names */
|
if (player->comtail[1])
|
||||||
p = getstarg(player->argp[1], "File? ", buf);
|
p = player->comtail[1];
|
||||||
|
else
|
||||||
|
p = getstring("File? ", buf);
|
||||||
if (p == NULL || *p == '\0')
|
if (p == NULL || *p == '\0')
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
prexec(p);
|
prexec(p);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue