Sourceware Bugzilla – Bug 10635
realpath portability patches
Last modified: 2013-10-01 20:31:53 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
A patch here is now bitrotten, do we check this in some other way or this was never merged?
The patch is still needed, I'll respin it.
Created attachment 7221 [details]
updated version of patch