aboutsummaryrefslogtreecommitdiff
path: root/src/regex/glob.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2017-10-13 23:08:21 -0400
committerRich Felker <dalias@aerifal.cx>2017-10-13 23:08:21 -0400
commit5b5eb527c5ed5ca2786bf82892a04ca3bdf33d31 (patch)
treecd31c6d2edee353dc6c8f72507faf091e2566cd6 /src/regex/glob.c
parentfix read-after-free type error in pthread_detach (diff)
downloadgrovel-5b5eb527c5ed5ca2786bf82892a04ca3bdf33d31.tar.gz
grovel-5b5eb527c5ed5ca2786bf82892a04ca3bdf33d31.tar.xz
fix incorrect base name offset from nftw when pathname ends in slash(es)
the rightmost '/' character is not necessarily the delimiter before the basename; it could be a spurious trailing character on the directory name. this change does not introduce any normalization of pathnames or stripping of trailing slashes, contrary to at least glibc and perhaps other implementations; it jusst prevents their presence from breaking things. whether further changes should be made is an open question that may depend on conformance and/or application compatibility considerations. based loosely on patch by Joakim Sindholt.
Diffstat (limited to 'src/regex/glob.c')
0 files changed, 0 insertions, 0 deletions