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

Re: [Xen-devel] Re: Use PATH_MAX for pathname char arrays.



Keir Fraser, le Fri 04 Apr 2008 15:30:52 +0100, a écrit :
> 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.

That's possible indeed, I'm just making sure we try to avoid adding
others :)

> 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?

Ah, right, realpath has a bad semantic indeed.  The intent of SUS is to
have it allocate the string if NULL is given, but that's not necessarily
implemented yet.  In the wild, I only know GNU/Hurd which doesn't have
any PATH_MAX limit, and it happens that that one has the allocation
behavior.

Samuel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.