Bug 10635 - realpath portability patches
: realpath portability patches
Status: NEW
Product: glibc
Classification: Unclassified
Component: libc
: 2.10
: P2 normal
: ---
Assigned To: Not yet assigned to anyone
:
:
:
:
  Show dependency treegraph
 
Reported: 2009-09-12 03:11 UTC by Eric Blake
Modified: 2012-12-19 10:44 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
preserve errno, allow leading // support (5.31 KB, patch)
2009-09-12 03:23 UTC, Eric Blake
Details | Diff
fix typo in previous attempt (5.31 KB, patch)
2009-09-12 11:07 UTC, Eric Blake
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Blake 2009-09-12 03:11:36 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 //.
Comment 1 Eric Blake 2009-09-12 03:23:22 UTC
Created attachment 4192 [details]
preserve errno, allow leading // support
Comment 2 Eric Blake 2009-09-12 11:07:23 UTC
Created attachment 4193 [details]
fix typo in previous attempt