* lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Feb 2007 08:36:35 +0000 (08:36 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Feb 2007 08:36:35 +0000 (08:36 +0000)
commitea7a4b772f0705edb9c9f2d75125f9849787078a
tree1de4f0655d5f09da7e3cce7978748c06d67534c0
parentdff73d331c91793b6c616f8ba80244175e54c5b6
* 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.
ChangeLog
lib/getcwd.c