Commit f84e1c2d6a3fdcc1768f745714ab889a84415dc7

Paul Eggert 2004-12-01T07:26:53

(is_ENAMETOOLONG): New macro. (__getcwd.c): Don't restore errno; glibc doesn't. [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd first, falling back to our code only if its results look suspicious. Ensure that the resulting buffer is only as large as necessary.