Skip to content

Commit b115494

Browse files
committed
Do not skip "nogui:" prefix in agent
parse_qubes_rpc_command() already does that. "QUBESRPC " does not start with "nogui:" so this is harmless.
1 parent 163597e commit b115494

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

agent/qrexec-agent.c

-4
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,6 @@ _Noreturn void do_exec(const char *cmd, const char *user)
154154
#endif
155155
sigset_t sigmask;
156156

157-
/* ignore "nogui:" prefix in linux agent */
158-
if (strncmp(cmd, NOGUI_CMD_PREFIX, NOGUI_CMD_PREFIX_LEN) == 0)
159-
cmd += NOGUI_CMD_PREFIX_LEN;
160-
161157
sigemptyset(&sigmask);
162158
sigprocmask(SIG_SETMASK, &sigmask, NULL);
163159
signal(SIGCHLD, SIG_DFL);

0 commit comments

Comments
 (0)