findcwd
if ((p = findcwd(badstat ? NULL : dest)) == NULL || chdir(p) < 0) {
p = findcwd(NULL);
static char *findcwd(char *);