summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsabetts <sabetts>2006-05-24 02:53:24 +0000
committersabetts <sabetts>2006-05-24 02:53:24 +0000
commitc7bb48b55f9a7089ac8b278f1f5c0188e2f500f2 (patch)
tree2cc8d99d5d1e298c8dafc4454a8685819af19729 /src
parent92c2e7041113df19095544435592a03be0a643c9 (diff)
downloadratpoison-c7bb48b55f9a7089ac8b278f1f5c0188e2f500f2.zip
* src/actions.c (spawn): pass cmd twice to execcl
Diffstat (limited to 'src')
-rw-r--r--src/actions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/actions.c b/src/actions.c
index 8ace412..df23225 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -2484,7 +2484,7 @@ spawn(char *cmd, int raw)
#endif
/* raw means don't run it through sh. */
if (raw)
- execl (cmd, NULL);
+ execl (cmd, cmd, NULL);
execl("/bin/sh", "sh", "-c", cmd, NULL);
_exit(EXIT_FAILURE);
}