summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-09-19 13:48:52 +0000
committerChristopher Faylor <me@cgf.cx>2000-09-19 13:48:52 +0000
commitb963175618d1d3e5979ea4295d0fee45264e1fbb (patch)
treef1719b2820ad2547e4b5ba4d527b8edbd0b2b321
parent6e604fb15d9c0c05ab86b5a3135b4474bd52f807 (diff)
downloadcygnal-b963175618d1d3e5979ea4295d0fee45264e1fbb.tar.gz
cygnal-b963175618d1d3e5979ea4295d0fee45264e1fbb.tar.bz2
cygnal-b963175618d1d3e5979ea4295d0fee45264e1fbb.zip
* spawn.cc (spawn_guts): Use actual program argument passed in for argv[0] as
originally suggested by Kazuhiro Fujieda <fujieda@jaist.ac.jp>.
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/spawn.cc2
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 1fcf38ffb..da7c80af5 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,9 @@
+Tue Sep 19 09:46:36 2000 Christopher Faylor <cgf@cygnus.com>
+
+ * spawn.cc (spawn_guts): Use actual program argument passed in for
+ argv[0] as originally suggested by Kazuhiro Fujieda
+ <fujieda@jaist.ac.jp>.
+
Mon Sep 18 23:17:19 2000 Christopher Faylor <cgf@cygnus.com>
* path.h: Create new input path flag PATH_NEEDDIR.
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