Menu

#6 canonicalize_file_name vs. realpath, on glibc/cygwin

closed-accepted
None
5
2011-03-29
2011-03-22
No

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.

Discussion

  • Erwin Waterlander

    • assigned_to: nobody --> waterlan
    • status: open --> open-accepted
     
  • Erwin Waterlander

    committed to svn 269.

     
  • Erwin Waterlander

    • status: open-accepted --> closed-accepted
     

Anonymous
Anonymous

Add attachments
Cancel