Re: [PATCH] maint: ensure PATH_MAX is set correctly
From:
Pádraig Brady
Subject:
Re: [PATCH] maint: ensure PATH_MAX is set correctly
Date:
Thu, 22 Mar 2012 11:47:32 +0000
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0
On 03/22/2012 10:53 AM, Eric Blake wrote:
> On 03/21/2012 10:53 PM, Pádraig Brady wrote:
>> * src/system.h: Include gnulib's pathmax.h to ensure
>> we set PATH_MAX only if needed.
>> ---
>> src/system.h | 1 +
>> 1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/src/system.h b/src/system.h
>> index 49cd08a..e3773bf 100644
>> --- a/src/system.h
>> +++ b/src/system.h
>> @@ -41,6 +41,7 @@ you must include <sys/types.h> before including this file
>> #include <unistd.h>
>>
>> #include <limits.h>
>> +#include "pathmax.h"
>> #ifndef PATH_MAX
>> # define PATH_MAX 8192
>> #endif
>
> ACK, once you also modify bootstrap.conf to call out an explicit
> dependency on the 'pathmax' module (right now, we're getting it
> implicitly via transitive closure).
>
Cool thanks.
Adjusting that led me to:
http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/27183/focus=27269
Updated patch attached.
cheers,
Pádraig.