From 909bfbad71af4607df9a156ca706f8c79e207e8c Mon Sep 17 00:00:00 2001 From: Nate Straz Date: Mon, 29 Aug 2005 16:08:30 +0000 Subject: Add '&' to the list of characters used to detect if we need to use sh to run the command line. Found by Dean. --- qarsh/qarshd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qarsh/qarshd.c b/qarsh/qarshd.c index 55de12e..8919984 100644 --- a/qarsh/qarshd.c +++ b/qarsh/qarshd.c @@ -91,7 +91,7 @@ run_cmd(const char *cmd, int p_in, int p_out, int p_err) * Otherwise exec the cmd directly. */ - if (strpbrk(cmd, "\"';|<>$\\~*")) { + if (strpbrk(cmd, "\"';|<>$\\~*&")) { execlp("sh", "sh", "-c", cmd, NULL); } else { char **argv; -- cgit