summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2012-02-04 11:50:53 -0700
committerEric Blake <eblake@redhat.com>2012-03-15 10:28:40 -0600
commit5e264bf248128735aaba4e368f3875680d2ca438 (patch)
tree7abce99252f01893a3f0d24cdd93e4836ac01de8 /tests
parenta84286ce7a2e7722eb38280bcbca7fabc647be95 (diff)
downloadcoreutils-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 'tests')
0 files changed, 0 insertions, 0 deletions