Description: Ensure getcwd(NULL, 0) returns a buffer allocated by the malloc() function. Files: lib/getcwd-lgpl.c m4/getcwd.m4 Depends-on: unistd free-posix [test $REPLACE_GETCWD = 1] strdup [test $REPLACE_GETCWD = 1] configure.ac: gl_FUNC_GETCWD_LGPL gl_CONDITIONAL([GL_COND_OBJ_GETCWD_LGPL], [test $REPLACE_GETCWD = 1]) gl_UNISTD_MODULE_INDICATOR([getcwd]) Makefile.am: if GL_COND_OBJ_GETCWD_LGPL lib_SOURCES += getcwd-lgpl.c endif Include: License: LGPLv2+ Maintainer: Eric Blake