diff options
author | Nate Straz <nstraz@redhat.com> | 2005-08-29 16:08:30 +0000 |
---|---|---|
committer | Nate Straz <nstraz@redhat.com> | 2005-08-29 16:08:30 +0000 |
commit | 909bfbad71af4607df9a156ca706f8c79e207e8c (patch) | |
tree | 55b0c43af259369ad71bb1ad84eb0100961d0ffc /qarsh/qarshd.c | |
parent | f71f8c9c220fb74edab66fbdfcbed32f3fcbe521 (diff) | |
download | qarsh-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.
Diffstat (limited to 'qarsh/qarshd.c')
-rw-r--r-- | qarsh/qarshd.c | 2 |
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; |