vm/qrexec: ignore "nogui:" prefix
It has meaning for Windows agent only now.
This commit is contained in:
parent
84375c3567
commit
b6e83de7b2
@ -122,6 +122,9 @@ void do_exec(char *cmd)
|
|||||||
/* mark end of username and move to command */
|
/* mark end of username and move to command */
|
||||||
*realcmd = 0;
|
*realcmd = 0;
|
||||||
realcmd++;
|
realcmd++;
|
||||||
|
/* ignore "nogui:" prefix in linux agent */
|
||||||
|
if (strncmp(realcmd, "nogui:", 6) == 0)
|
||||||
|
realcmd+=6;
|
||||||
/* replace magic RPC cmd with RPC multiplexer path */
|
/* replace magic RPC cmd with RPC multiplexer path */
|
||||||
if (strncmp(realcmd, QUBES_RPC_MAGIC_CMD " ", strlen(QUBES_RPC_MAGIC_CMD)+1)==0) {
|
if (strncmp(realcmd, QUBES_RPC_MAGIC_CMD " ", strlen(QUBES_RPC_MAGIC_CMD)+1)==0) {
|
||||||
strcpy(buf, QUBES_RPC_MULTIPLEXER_PATH);
|
strcpy(buf, QUBES_RPC_MULTIPLEXER_PATH);
|
||||||
|
Loading…
Reference in New Issue
Block a user