Blame SOURCES/ksh-20120801-validate-fd.patch

1a53a7
diff --git a/src/cmd/ksh93/sh/xec.c b/src/cmd/ksh93/sh/xec.c
1a53a7
--- a/src/cmd/ksh93/sh/xec.c
1a53a7
+++ b/src/cmd/ksh93/sh/xec.c
1a53a7
@@ -122,6 +122,7 @@ int iousepipe(Shell_t *shp)
1a53a7
 		return(1);
1a53a7
 	}
1a53a7
 	subpipe[2] = sh_fcntl(fd,F_dupfd_cloexec,10);
1a53a7
+ 	sh_iovalidfd(shp,subpipe[2]);
1a53a7
 	shp->fdstatus[subpipe[2]] = shp->fdstatus[1];
1a53a7
 	while(close(fd)<0 && errno==EINTR)
1a53a7
 		errno = err;