fix glob failure to match plain "/" to root directory
authorRich Felker <dalias@aerifal.cx>
Thu, 8 Jun 2017 23:50:23 +0000 (19:50 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 8 Jun 2017 23:50:23 +0000 (19:50 -0400)
commit84eff797e3e38210cc311b000b1586b948b4fc35
tree93d792eac55fb99cd0453617aaa340d177f90072
parentbc313e880c6cde2e512d2f43e84968d1b12bd19d
fix glob failure to match plain "/" to root directory

the check to prevent matching empty string wrongly blocked matching
of "/" due to checking emptiness after stripping leading slashes
rather than checking the full original argument string.

simplified from patch by Julien Ramseier.
src/regex/glob.c