[Top][All Lists]

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

Re: [PATCH] libutil: find: Define PATH_MAX for GNU/Hurd systems.

From: Manolis Ragkousis
Subject: Re: [PATCH] libutil: find: Define PATH_MAX for GNU/Hurd systems.
Date: Thu, 23 Jun 2016 19:49:54 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1


On 06/20/16 10:17, Shigio YAMAGUCHI wrote:
> Hi
>> +/* MAX_PATH is not defined in some platforms, most notably GNU/Hurd.
>> +   In that case we define it here to some constant. */
> Since PATH_MAX is buffer size that realpath(3) assumes,
> setting a wrong size would destroy memory.
> How can we know correct size?

Then maybe it would be safer to use the same size as defined in

#define PATH_MAX        4096    /* # chars in a path name including nul */

This patch does not change anything for systems which PATH_MAX is
defined, and this number will not create an issue for GNU/Hurd. WDYT?

Thank you,

Attachment: global-path-max.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]