From 698322553a9cd9c5abbefc3d5332b2342fff4f38 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 25 Nov 2007 14:06:53 +0000 Subject: [PATCH] (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. --- src/lib/player/player.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/player/player.c b/src/lib/player/player.c index 8d3762c45..89f63a7d0 100644 --- a/src/lib/player/player.c +++ b/src/lib/player/player.c @@ -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); -- 2.43.0