summaryrefslogtreecommitdiff
path: root/tests/cp
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2012-01-25 16:42:42 +0000
committerPádraig Brady <P@draigBrady.com>2012-01-25 18:01:52 +0000
commit11af4b31b61302188a65e521921c42ddb45c4fb9 (patch)
tree8cab26a184bf4f9776b25b61f7bdd6292645cac1 /tests/cp
parente9a2555826767baae96a3eabca1f9d91bddca619 (diff)
downloadcoreutils-11af4b31b61302188a65e521921c42ddb45c4fb9.tar.xz
realpath: remove extraneous '/' for --relative-to edge cases
* src/realpath.c (path_common_prefix): Be consistent and always include a leading '/' in the count returned. (relpath): Account for the change in path_common_prefix() and avoid outputting extra '/' chars in relative paths that span the root dir. * tests/misc/realpath: Add the two reported cases. Reported by Mike Frysinger
Diffstat (limited to 'tests/cp')
0 files changed, 0 insertions, 0 deletions