ff22b9
--- ksh-20120801/src/cmd/ksh93/sh/path.c	2014-09-01 15:08:06.738969962 -0300
ff22b9
+++ ksh-20120801/src/cmd/ksh93/sh/path.c	2014-09-01 15:13:51.321459978 -0300
ff22b9
@@ -229,13 +229,12 @@ static pid_t path_xargs(Shell_t *shp,con
ff22b9
 /*
ff22b9
  * make sure PWD is set up correctly
ff22b9
  * Return the present working directory
ff22b9
- * Invokes getcwd() if flag==0 and if necessary
ff22b9
+ * Invokes getcwd() if necessary
ff22b9
  * Sets the PWD variable to this value
ff22b9
  */
ff22b9
 char *path_pwd(Shell_t *shp,int flag)
ff22b9
 {
ff22b9
 	register char *cp;
ff22b9
-	register char *dfault = (char*)e_dot;
ff22b9
 	register int count = 0;
ff22b9
 	if(shp->pwd)
ff22b9
 		return((char*)shp->pwd);
ff22b9
@@ -254,11 +253,6 @@ char *path_pwd(Shell_t *shp,int flag)
ff22b9
 				cp = "/";
ff22b9
 				break;
ff22b9
 			case 3:
ff22b9
-				cp = (char*)e_crondir;
ff22b9
-				if(flag) /* skip next case when non-zero flag */
ff22b9
-					++count;
ff22b9
-				break;
ff22b9
-			case 4:
ff22b9
 			{
ff22b9
 				if(cp=getcwd(NIL(char*),0))
ff22b9
 				{  
ff22b9
@@ -269,8 +263,8 @@ char *path_pwd(Shell_t *shp,int flag)
ff22b9
 				}
ff22b9
 				break;
ff22b9
 			}
ff22b9
-			case 5:
ff22b9
+			case 4:
ff22b9
-				return(dfault);
ff22b9
+				return((char*)e_dot);
ff22b9
 		}
ff22b9
 		if(cp && *cp=='/' && test_inode(cp,e_dot))
ff22b9
 			break;