*** ncftp/cmds.c.bak	Thu Jun 25 07:40:40 1998
--- ncftp/cmds.c	Tue Sep  8 02:16:08 1998
***************
*** 1619,1626 ****
  
  		if ((result = FTPGetCWD(&gConn, gRemoteCWD, sizeof(gRemoteCWD))) < 0) {
  			FTPPerror(&gConn, result, kErrPWDFailed, "Could not get remote working directory", NULL);
! 			CloseHost();
! 			return (-1);
  		}
  
  		/* Need to note what our "root" was before we change it. */
--- 1619,1625 ----
  
  		if ((result = FTPGetCWD(&gConn, gRemoteCWD, sizeof(gRemoteCWD))) < 0) {
  			FTPPerror(&gConn, result, kErrPWDFailed, "Could not get remote working directory", NULL);
! 			(void) STRNCPY(gRemoteCWD, "");
  		}
  
  		/* Need to note what our "root" was before we change it. */
