printpath
if (printpath || cdnode)
int printpath = 0; /* print where we cd'd? */
printpath++;
(void)printpath(p);
chcnt += printpath(p);