[patch] getcwd needs size argument on solaris
Nils Goroll
slink at schokola.de
Wed Sep 22 09:46:02 UTC 2010
Hi,
on (Open)Solaris, test m00000.vtc will fail because of getcwd(NULL, 0) in vtc.c
returning NULL.
from getcwd(3C) :
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().
Thanks, Nils
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vtc_getcwd_solaris.patch
URL: <https://www.varnish-cache.org/lists/pipermail/vinyl-dev/attachments/20100922/3f9990b8/attachment.ksh>
More information about the vinyl-dev
mailing list