Roland Mainz
2013-07-24 23:37:28 UTC
Hi!
----
Below is a small fix to prevent ast-ksh.2013-07-19 from closing the
pwdfd. We've hit this when running the ksh93 test suite:
-- snip --
diff -r -u build_i386_64bit_debug/src/cmd/ksh93/sh/xec.c
build_i386_64bit_debug_cdfixes/src/cmd/ksh93/sh/xec.c
--- src/cmd/ksh93/sh/xec.c 2013-07-18 20:35:53.000000000 +0200
+++ src/cmd/ksh93/sh/xec.c 2013-07-23 05:42:49.025713788 +0200
@@ -1351,7 +1351,7 @@
/* do close-on-exec */
int fd;
for(fd=0; fd <
shp->gd->lim.open_max; fd++)
-
if((shp->fdstatus[fd]&IOCLEX)&&fd!=shp->infd)
+
if((shp->fdstatus[fd]&IOCLEX) && (fd!=shp->infd) && (fd!=shp->pwdfd))
sh_close(fd);
}
if(argn)
-- snip --
----
Bye,
Roland
----
Below is a small fix to prevent ast-ksh.2013-07-19 from closing the
pwdfd. We've hit this when running the ksh93 test suite:
-- snip --
diff -r -u build_i386_64bit_debug/src/cmd/ksh93/sh/xec.c
build_i386_64bit_debug_cdfixes/src/cmd/ksh93/sh/xec.c
--- src/cmd/ksh93/sh/xec.c 2013-07-18 20:35:53.000000000 +0200
+++ src/cmd/ksh93/sh/xec.c 2013-07-23 05:42:49.025713788 +0200
@@ -1351,7 +1351,7 @@
/* do close-on-exec */
int fd;
for(fd=0; fd <
shp->gd->lim.open_max; fd++)
-
if((shp->fdstatus[fd]&IOCLEX)&&fd!=shp->infd)
+
if((shp->fdstatus[fd]&IOCLEX) && (fd!=shp->infd) && (fd!=shp->pwdfd))
sh_close(fd);
}
if(argn)
-- snip --
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)