]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
* xgetcwd.c: Work around Solaris 9 bug.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 17 Nov 2004 03:42:45 +0000 (03:42 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 17 Nov 2004 03:42:45 +0000 (03:42 +0000)
lib/ChangeLog

index f447f86cad36fd4c7fe967d9ced837bf02572390..8fc22f03269d75a22d0ce3725807fb2bf8f874cd 100644 (file)
@@ -1,5 +1,10 @@
 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * xgetcwd.c: Include <limits.h>, for PATH_MAX.
+       (xgetcwd): Set errno correctly when failing.
+       Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
+       the failure is actually due to a PATH_MAX problem.
+
        Further getopt changes to make it more likely that glibc will
        buy the changes back.
        * getopt.c (POSIXLY_CORRECT): New constant.