summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/spawn.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r--winsup/cygwin/spawn.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index f396311ea..3b46f6782 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -473,7 +473,7 @@ spawn_guts (HANDLE hToken, const char * prog_arg, const char *const *argv,
/* Replace argv[0] with the full path to the script if this is the
first time through the loop. */
- newargv.replace0_maybe (real_path);
+ newargv.replace0_maybe (prog_arg);
/* pointers:
* pgm interpreter name