diff options
author | Pádraig Brady <P@draigBrady.com> | 2012-01-25 16:42:42 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2012-01-25 18:01:52 +0000 |
commit | 11af4b31b61302188a65e521921c42ddb45c4fb9 (patch) | |
tree | 8cab26a184bf4f9776b25b61f7bdd6292645cac1 /man | |
parent | e9a2555826767baae96a3eabca1f9d91bddca619 (diff) | |
download | coreutils-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 'man')
0 files changed, 0 insertions, 0 deletions