Please, could you use next patch instead.
In fact, it is for months applied upstream, see
http://cvs.savannah.nongnu.org/viewvc/ccvs/lib/getcwd.c?root=cvs&r1=1.12&r2=1.13
Petr
diff -ruN cvs-1.12.13-old/lib/getcwd.c cvs-1.12.13/lib/getcwd.c
--- cvs-1.12.13-old/lib/getcwd.c
+++ cvs-1.12.13/lib/getcwd.c
@@ -151,7 +151,7 @@
size_t allocated = size;
size_t used;
-#if HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD
+#if HAVE_PARTLY_WORKING_GETCWD
/* The system getcwd works, except it sometimes fails when it
shouldn't, setting errno to ERANGE, ENAMETOOLONG, or ENOENT. If
AT_FDCWD is not defined, the algorithm below is O(N**2) and this
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]