[PATCH] avoid assuming MAXPATHLEN in config(8)

Ed Schouten ed at 80386.nl
Thu Jul 7 11:17:53 UTC 2011


* Robert Millan <rmh at debian.org>, 20110707 13:12:
> As for the __GLIBC__ bit, it is difficult to handle this without a
> function that canonicalizes arbitrary-length pathnames.  Would you
> prefer something like:
> 
> #ifdef MAXPATHLEN
> // use realpath on a statically-allocated buffer
> #else
> // assume canonicalize_file_name() is present
> #endif

Considering that the function is rather small anyway, why not compile it
in unconditionally (though having a different name).

-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20110707/f979a210/attachment.pgp


More information about the freebsd-hackers mailing list