Blame SOURCES/ksh-20120801-cdfix3.patch

1a53a7
diff -up ksh-20120801/src/cmd/ksh93/bltins/cd_pwd.c.cdfix3 ksh-20120801/src/cmd/ksh93/bltins/cd_pwd.c
1a53a7
--- ksh-20120801/src/cmd/ksh93/bltins/cd_pwd.c.cdfix3	2014-06-20 12:39:02.757407689 +0200
1a53a7
+++ ksh-20120801/src/cmd/ksh93/bltins/cd_pwd.c	2014-06-20 12:40:19.530998070 +0200
1a53a7
@@ -290,7 +290,7 @@ int	b_cd(int argc, char *argv[],Shbltin_
1a53a7
 		if(newdirfd >=0)
1a53a7
 		{
1a53a7
 			/* chdir for directories on HSM/tapeworms may take minutes */
1a53a7
-			if(fchdir(newdirfd) >= 0)
1a53a7
+			if((rval=fchdir(newdirfd)) >= 0)
1a53a7
 			{
1a53a7
 				if(shp->pwdfd >= 0)
1a53a7
 					sh_close(shp->pwdfd);