[patch] getcwd needs size argument on solaris

Nils Goroll slink at schokola.de
Wed Sep 22 11:46:02 CEST 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/varnish-dev/attachments/20100922/3f9990b8/attachment-0003.ksh>


More information about the varnish-dev mailing list