[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#595538: wget: [PATCH] don't use PATH_MAX (FTBFS on hurd)



tags 595538 + upstream
forwarded 595538 https://savannah.gnu.org/bugs/index.php?33822
thanks

Hello Carlos,

Am Sonntag, den 05.09.2010, 00:02 +0100 schrieb Carlos Martín Nieto:

>  The constant PATH_MAX is not defined when building in Hurd. This patch
> changes src/init.c:home_dir() to allocate memory dynamically.
> 
>  In the first part, we figure out how long the path is and only allocate
> that much (+1 for the null terminator).
> 
>  In the second part, there is no need to use the `buf' variable at all.
> We just point `home' to the path, as it's going to be duplicated later.
> 
>  This compiles, but I don't have a DOS box to test.

thx for your report and patch. It is now in the upstream bug tracker.

-- 
Noël Köthe <noel debian.org>
Debian GNU/Linux, www.debian.org

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: