replace: fix build issues on GNU Hurd (#7998)

Jeremy Allison jra at samba.org
Tue May 31 16:23:52 MDT 2011


On Tue, May 31, 2011 at 12:33:46AM +0100, Jelmer Vernooij wrote:
> I think if we want to support the hurd we should also stop defining
> PATH_MAX in libreplace. The Hurd doesn't define PATH_MAX and allows
> arbitrary length paths. This means the system can provide paths that are
> longer than the fallback PATH_MAX defined by libreplace (1024), which
> can result in buffer overruns, etc.
> 
> See also
> 
> http://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html

Thanks for that. I'll work on removing PATH_MAX code for 4.0.0.

Jeremy


More information about the samba-technical mailing list