r45598 causes Errno::EINVAL on Solaris
On Solaris, after r45598, the following error occurs.
./miniruby: Invalid argument - getcwd (Errno::EINVAL)
It seems that getcwd(NULL, 0) is not supported in Solaris.
The Solaris man page of getcwd(3c) says:
If buf is a null pointer, getcwd() obtains size bytes of
space using malloc(3C). The pointer returned by getcwd() can
be used as the argument in a subsequent call to free().
But no description when the size is zero.
- configure.in (rb_cv_getcwd_malloc): check if getcwd allocates buffer if NULL is given [ruby-core:62072] [Bug #9752]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Updated by nobu (Nobuyoshi Nakada) almost 5 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100