Eric Blake wrote:
> > Just for the record, it turns out the chdir-long is not compiled, because
> > the variable $gl_cv_have_arbitrary_file_name_length_limit ends up being
> "no".
> 
> Aha - that's a bug in the chdir-long module.

Indeed. The problem is that after the 2011-08-05 commit, m4/chdir-long.m4
and lib/chdir-long are no longer in sync: The .m4 file assumes that only
<unistd.h> and <limits.h> will be included before
(defined PATH_MAX || defined MAXPATHLEN) is tested,
whereas the .h file includes
<unistd.h>, <limits.h>, <sys/param.h> before doing this test.

> It should be providing 
> chdir_long() unconditionally, but when there is no arbitrary file name 
> limit, it should be a simple stub around chdir().

That would be a possible fix of the problem, yes.

Bruno


Reply via email to