URL:
<http://savannah.gnu.org/bugs/?33822>
Summary: [PATCH] don't use PATH_MAX (FTBFS on hurd)
Project: GNU Wget
Submitted by: nok
Submitted on: Sa 23 Jul 2011 09:56:08 CEST
Category: Feature Request
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.12
Operating System: None
Reproducibility: None
Fixed Release: None
Planned Release: None
Regression: None
Work Required: None
Patch Included: Yes
_______________________________________________________
Details:
Hello,
a forwarded patch from http://bugs.debian.org/595538
--8<--
From: Carlos Martín Nieto <[email protected]>
To: [email protected]
Cc: [email protected]
Subject: wget: [PATCH] don't use PATH_MAX (FTBFS on hurd)
Date: Sun, 05 Sep 2010 00:02:46 +0100
[Message part 1 (text/plain, inline)]
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
--8<--
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sa 23 Jul 2011 09:56:08 CEST Name: wget-no-path_max.dpatch Size: 2kB
By: nok
patch
<http://savannah.gnu.org/bugs/download.php?file_id=23683>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33822>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]