forked from pool/coreutils
12 lines
392 B
Diff
12 lines
392 B
Diff
|
--- lib/getcwd.c
|
||
|
+++ lib/getcwd.c
|
||
|
@@ -137,7 +137,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
|