From: Keir Fraser Subject: Re: Re: Use PATH_MAX for pathname char arrays. Date: Fri, 04 Apr 2008 15:30:52 +0100 Message-ID: References: <20080404141720.GB4075@implementation> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080404141720.GB4075@implementation> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Samuel Thibault , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org If there are better alternatives I'd be happy to use them instead. But we already use PATH_MAX elsewhere in the tools, so this might be a wider-ranging cleanup than you think. The original impetus for this change was due to bugchecks applied in some cases by glibc's realpath() implementation. But actually is realpath() deprecated anyway? -- Keir On 4/4/08 15:17, "Samuel Thibault" wrote: > Hello, > > Using PATH_MAX is not a good idea: POSIX says that that definition > is facultative, in case the system does not impose any limit on path > length. Some systems may also set PATH_MAX to a quite high value, and > we would hence consume a lot of stack. > > Samuel > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel