diff options
author | Eric Blake <eblake@redhat.com> | 2012-02-04 11:50:53 -0700 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2012-03-15 10:28:40 -0600 |
commit | 5e264bf248128735aaba4e368f3875680d2ca438 (patch) | |
tree | 7abce99252f01893a3f0d24cdd93e4836ac01de8 /src/install.c | |
parent | a84286ce7a2e7722eb38280bcbca7fabc647be95 (diff) | |
download | coreutils-5e264bf248128735aaba4e368f3875680d2ca438.tar.xz |
realpath: fix problems with root handling
When --relative-base is /, all other paths should be treated as
relative (except for // where it matters).
Also, on platforms like Cygwin where / and // are distinct, realpath
was incorrectly collapsing // into /. http://debbugs.gnu.org/10472.
* src/realpath.c (path_prefix, path_common_prefix): Treat /
and // as having no common match.
(relpath): Allow for no match even without --relative-base.
* NEWS: Document this.
Diffstat (limited to 'src/install.c')
0 files changed, 0 insertions, 0 deletions