db8b5b018f
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/ksh#642af4d65a6ae8825306305765a595a6f10eba47
15 lines
486 B
Diff
15 lines
486 B
Diff
diff -up ksh-20120801/src/cmd/ksh93/bltins/cd_pwd.c.cdfix ksh-20120801/src/cmd/ksh93/bltins/cd_pwd.c
|
|
--- ksh-20120801/src/cmd/ksh93/bltins/cd_pwd.c.cdfix 2013-02-01 16:04:55.507150242 +0100
|
|
+++ ksh-20120801/src/cmd/ksh93/bltins/cd_pwd.c 2013-02-01 16:06:39.361007641 +0100
|
|
@@ -214,7 +214,10 @@ int b_cd(int argc, char *argv[],Shbltin_
|
|
if(*++dp=='.' && (*++dp=='/' || *dp==0))
|
|
n++;
|
|
else if(*dp && *dp!='/')
|
|
+ {
|
|
+ dp--;
|
|
break;
|
|
+ }
|
|
if(*dp==0)
|
|
break;
|
|
}
|