In article <12291 at ulysses.homer.nj.att.com> gsf at ulysses.homer.nj.att.com (Glenn Fowler[drew]) writes: >the environment c.w.d. can be verified by two quick stat()'s at the top of >getcwd(): Yes, it could, but when the stat check fails then you'd have to resort to one of the other methods; getenv("PWD") in itself is insufficient.