Bug 10635 - realpath portability patches
Summary: realpath portability patches
Status: WAITING
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.10
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-12 03:11 UTC by Eric Blake
Modified: 2014-07-01 06:53 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
preserve errno, allow leading // support (1.90 KB, patch)
2009-09-12 03:23 UTC, Eric Blake
Details | Diff
fix typo in previous attempt (1.90 KB, patch)
2009-09-12 11:07 UTC, Eric Blake
Details | Diff
updated version of patch (1.96 KB, patch)
2013-10-01 19:25 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
Comment 3 Ondrej Bilka 2013-09-21 20:32:37 UTC
A patch here is now bitrotten, do we check this in some other way or this was never merged?
Comment 4 Eric Blake 2013-10-01 19:11:30 UTC
The patch is still needed, I'll respin it.
Comment 5 Eric Blake 2013-10-01 19:25:11 UTC
Created attachment 7221 [details]
updated version of patch