Blame SOURCES/ksh-20120801-cdfix.patch

503c26
diff -up ksh-20120801/src/cmd/ksh93/bltins/cd_pwd.c.cdfix ksh-20120801/src/cmd/ksh93/bltins/cd_pwd.c
503c26
--- ksh-20120801/src/cmd/ksh93/bltins/cd_pwd.c.cdfix	2013-02-01 16:04:55.507150242 +0100
503c26
+++ ksh-20120801/src/cmd/ksh93/bltins/cd_pwd.c	2013-02-01 16:06:39.361007641 +0100
503c26
@@ -214,7 +214,10 @@ int	b_cd(int argc, char *argv[],Shbltin_
503c26
 			if(*++dp=='.' && (*++dp=='/' || *dp==0))
503c26
 				n++;
503c26
 			else if(*dp && *dp!='/')
503c26
+			{
503c26
+				dp--;
503c26
 				break;
503c26
+			}
503c26
 			if(*dp==0)
503c26
 				break;
503c26
 		}