getcwd: Fix bug from 2011-08-17.
authorBruno Haible <bruno@clisp.org>
Sun, 27 Nov 2011 23:04:12 +0000 (00:04 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 27 Nov 2011 23:04:12 +0000 (00:04 +0100)
commit176f1d1a865ee10da98321637160fc68ab51c554
tree1a3e4f7b80897cf28052b7191d1e33f2b5a80227
parent8dccbc62431b05789d06d48ebf83b68180c7ab58
getcwd: Fix bug from 2011-08-17.

* m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
platforms that need it.
* m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
code of 4 to be a failure, not a success. This ensures that
REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
ChangeLog
m4/getcwd-abort-bug.m4
m4/getcwd.m4