* lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
[gnulib.git] / ChangeLog
index 19a7760..0f1e117 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
+       like glibc; on Solaris 10, it fails with errno == EINVAL.
+       POSIX says the behavior is unspecified if the first argument is NULL,
+       so play it safe and never pass NULL to the system getcwd.
+
 2007-02-21  Jim Meyering  <jim@meyering.net>
 
        * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration