Blame SOURCES/ksh-20130613-cdfix4.patch

1a53a7
diff -up ksh-20120801/src/cmd/ksh93/bltins/cd_pwd.c.cdfix4 ksh-20120801/src/cmd/ksh93/bltins/cd_pwd.c
1a53a7
--- ksh-20120801/src/cmd/ksh93/bltins/cd_pwd.c.cdfix4	2014-08-26 15:24:57.276953822 +0200
1a53a7
+++ ksh-20120801/src/cmd/ksh93/bltins/cd_pwd.c	2014-08-26 15:25:34.738770361 +0200
1a53a7
@@ -143,9 +143,9 @@ int sh_diropenat(Shell_t *shp, int dir,
1a53a7
 	}
1a53a7
 
1a53a7
 	/* Move fd to a number > 10 and *register* the fd number with the shell */
1a53a7
-	shfd = sh_fcntl(fd, F_dupfd_cloexec, 10);
1a53a7
+	shfd = fcntl(fd, F_dupfd_cloexec, 10);
1a53a7
 	savederrno=errno;
1a53a7
-	sh_close(fd);
1a53a7
+	close(fd);
1a53a7
 	errno=savederrno;
1a53a7
 	return(shfd);
1a53a7
 }