From b6e83de7b2bcadea95cadba96f157308286fd358 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Tue, 8 Jan 2013 11:27:18 +0100 Subject: [PATCH] vm/qrexec: ignore "nogui:" prefix It has meaning for Windows agent only now. --- qrexec/qrexec_agent.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qrexec/qrexec_agent.c b/qrexec/qrexec_agent.c index 66d14045..f5ac69b0 100644 --- a/qrexec/qrexec_agent.c +++ b/qrexec/qrexec_agent.c @@ -122,6 +122,9 @@ void do_exec(char *cmd) /* mark end of username and move to command */ *realcmd = 0; realcmd++; + /* ignore "nogui:" prefix in linux agent */ + if (strncmp(realcmd, "nogui:", 6) == 0) + realcmd+=6; /* replace magic RPC cmd with RPC multiplexer path */ if (strncmp(realcmd, QUBES_RPC_MAGIC_CMD " ", strlen(QUBES_RPC_MAGIC_CMD)+1)==0) { strcpy(buf, QUBES_RPC_MULTIPLEXER_PATH);