summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNate Straz <nstraz@redhat.com>2005-08-29 16:08:30 +0000
committerNate Straz <nstraz@redhat.com>2005-08-29 16:08:30 +0000
commit909bfbad71af4607df9a156ca706f8c79e207e8c (patch)
tree55b0c43af259369ad71bb1ad84eb0100961d0ffc
parentf71f8c9c220fb74edab66fbdfcbed32f3fcbe521 (diff)
downloadqarsh-909bfbad71af4607df9a156ca706f8c79e207e8c.tar.gz
qarsh-909bfbad71af4607df9a156ca706f8c79e207e8c.tar.xz
qarsh-909bfbad71af4607df9a156ca706f8c79e207e8c.zip
Add '&' to the list of characters used to detect if we need to use
sh to run the command line. Found by Dean.
-rw-r--r--qarsh/qarshd.c2
1 files changed, 1 insertions, 1 deletions
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;