Fix the !HAVE_GETCWD_NULL code to behave more
authorJim Meyering <jim@meyering.net>
Mon, 3 Sep 2001 18:21:53 +0000 (18:21 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 3 Sep 2001 18:21:53 +0000 (18:21 +0000)
commite6995fc57b107d86e2601d1c3f3538d42ba1bade
tree620d7c1b0d13a2249bcaad6d040f474ed4d3c36a
parent124beb935218646436aeb43403386a609bf1a024
Fix the !HAVE_GETCWD_NULL code to behave more
like the HAVE_GETCWD_NULL code.
Include pathmax.h if not HAVE_GETCWD.
Do not include xalloc.h.
(INITIAL_BUFFER_SIZE): New symbol.
Do not use xmalloc / xrealloc, since the caller is responsible for
handling errors.  Preserve errno around `free' during failure.
Do not overrun buffer when using getwd.
lib/xgetcwd.c