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

wget: [PATCH] don't use PATH_MAX (FTBFS on hurd)



Package: wget
Version: 1.12-2

 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.

   cmn

Attachment: wget-no-path_max.dpatch
Description: application/shellscript


Reply to: