summaryrefslogtreecommitdiff
path: root/tests/misc/sort-discrim
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2012-03-14 13:42:59 -0600
committerEric Blake <eblake@redhat.com>2012-03-15 13:28:19 -0600
commitbe17e3b98a178ea6e2c973bf49282f11f7060353 (patch)
treefc13d79392e4c5e416a9838b33c6f8f5e14f2d1a /tests/misc/sort-discrim
parent9f5aa4850133976eee22dcc0b506d7b632cd674c (diff)
downloadcoreutils-be17e3b98a178ea6e2c973bf49282f11f7060353.tar.xz
realpath: optimize --relative-base usage
There is no need to recompute for every path being visited whether the base is a prefix of the relative location. * src/realpath.c (relpath): Hoist base check... (main): ...here. Based on a suggestion by Pádraig Brady.
Diffstat (limited to 'tests/misc/sort-discrim')
0 files changed, 0 insertions, 0 deletions