Sources Bugzilla – Bug 10635
realpath portability patches
Last modified: 2012-12-19 10:44:05 UTC
The gnulib folks have a couple of patches to improve the portability of realpath and canonicalize_file_name. On error paths, the code is setting errno prior to calling free(), but free can clobber errno. And on systems where // is distinct from / (as allowed by POSIX), realpath needs to honor a leading //.
Created attachment 4192 [details] preserve errno, allow leading // support
Created attachment 4193 [details] fix typo in previous attempt