summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
Diffstat (limited to 'job.c')
-rw-r--r--job.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/job.c b/job.c
index 7bb336c..daefc5c 100644
--- a/job.c
+++ b/job.c
@@ -1114,7 +1114,7 @@ exec_command (argv, envp)
new_argv = (char **) alloca ((1 + argc + 1) * sizeof (char *));
new_argv[0] = shell;
- new_argv[1] = program;
+ new_argv[1] = argv[0];
while (argc > 0)
{
new_argv[1 + argc] = argv[argc];