canonicalize_file_name vs. realpath, on glibc/cygwin
Dos2Unix / Unix2Dos - Text file format converters
Brought to you by:
waterlan
This patch is associated with tracker item:
https://sourceforge.net/tracker/index.php?func=detail&aid=3233588&group_id=292083&atid=1234810
but is technically independent -- although without that other patchset it really serves no purpose.
This patch ensures that on "new enough" glibc and cygwin platforms, the canonicalize_file_name() function is used to resolve symbolic links instead of realpath(). Realpath is limited to PATH_MAX characters, even though some systems' path length is actually unlimited -- or whose limit is much greater than the declared PATH_MAX value. Canonicalize_file_name is a GNU extension and is not universally supported -- but it is available on glibc >= 2.4 and cygwin >= 1.7.
Anonymous
committed to svn 269.