Blame SOURCES/ksh-20120801-cdfix.patch

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