[tex-live] TL2010 pretest luatex fails on Solaris 10 sparc
George N. White III
gnwiii at gmail.com
Thu Jun 10 16:48:14 CEST 2010
On Thu, Jun 10, 2010 at 11:23 AM, Taco Hoekwater <taco at elvenkind.com> wrote:
>
> Hi,
>
> George N. White III wrote:
>>
>> $ gcc --version
>> gcc (GCC) 4.2.4 (OpenPKG-CURRENT)
>
> Odd, but it does not matter. This should be fixed in the current TeXLive
> repository already.
In luafilesystem:lfs.c
/*
** This function returns the current directory
** If unable to get the current directory, it returns nil
** and a string describing the error
*/
static int get_dir (lua_State *L) {
char *path;
if ((path = getcwd(NULL, 0)) == NULL) {
lua_pushnil(L);
lua_pushstring(L, getcwd_error);
return 2;
}
else {
lua_pushstring(L, path);
free(path);
return 1;
}
}
"man getcwd" has a simple example, which fails if I change the 2nd
argument to 0 -- even using gcc SunOS seems to need a non-zero 2nd
argument to getcwd().
I see on SVN that you changed 0 to 500 -- should do the trick for now
and provide someone with little puzzle when pwd is 501 chars.
Thanks.
>
> Best wishes,
> Taco
>
>
--
George N. White III <aa056 at chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia
More information about the tex-live
mailing list