Lines Matching refs:pwd
197 if (ftp->pwd) { in ftp_gc()
198 efree(ftp->pwd); in ftp_gc()
199 ftp->pwd = NULL; in ftp_gc()
223 if (ftp->pwd) { in ftp_quit()
224 efree(ftp->pwd); in ftp_quit()
225 ftp->pwd = NULL; in ftp_quit()
442 char *pwd, *end; in ftp_pwd() local
449 if (ftp->pwd) { in ftp_pwd()
450 return ftp->pwd; in ftp_pwd()
459 if ((pwd = strchr(ftp->inbuf, '"')) == NULL) { in ftp_pwd()
462 if ((end = strrchr(++pwd, '"')) == NULL) { in ftp_pwd()
465 ftp->pwd = estrndup(pwd, end - pwd); in ftp_pwd()
467 return ftp->pwd; in ftp_pwd()
517 if (ftp->pwd) { in ftp_chdir()
518 efree(ftp->pwd); in ftp_chdir()
519 ftp->pwd = NULL; in ftp_chdir()
540 if (ftp->pwd) { in ftp_cdup()
541 efree(ftp->pwd); in ftp_cdup()
542 ftp->pwd = NULL; in ftp_cdup()