bugGNU Wget - Bugs: bug #33822, [PATCH] don't use PATH_MAX (FTBFS...

 
 

bug #33822: [PATCH] don't use PATH_MAX (FTBFS on hurd)

Submitted by:  Noël Köthe <nok>
Submitted on:  Sat 23 Jul 2011 07:56:08 AM UTC  
 
Category: Feature RequestSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: Giuseppe Scrivano <gscrivano>
Originator Name: Open/Closed: Closed
Release: 1.12Operating System: None
Reproducibility: NoneFixed Release: None
Planned Release: NoneRegression: None
Work Required: NonePatch Included: Yes

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 26 Jul 2011 10:52:54 AM UTC, comment #1:

thanks. I have included the patch.

Giuseppe Scrivano <gscrivano>
Project AdministratorIn charge of this item.
Sat 23 Jul 2011 07:56:08 AM UTC, original submission:

Hello,

a forwarded patch from http://bugs.debian.org/595538

--8<--
From: Carlos Martín Nieto <carlos@cmartin.tk>
To: -unavailable-
Cc: -unavailable-
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<--

Noël Köthe <nok>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #23683:  wget-no-path_max.dpatch added by nok (2KiB - application/octet-stream - patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gscrivano (Posted a comment)
  • -unavailable- added by nok (Submitted the item)
  • -unavailable- added by nok
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 26 Jul 2011 10:52:54 AM UTCgscrivanoStatusNone=>Fixed
      Assigned toNone=>gscrivano
      Open/ClosedOpen=>Closed
    Sat 23 Jul 2011 07:56:08 AM UTCnokAttached File-=>Added wget-no-path_max.dpatch, #23683
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1