summaryrefslogtreecommitdiff
path: root/sys/src/libregexp/regexec.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-11-05 10:48:51 -0800
committerOri Bernstein <ori@eigenstate.org>2019-11-05 10:48:51 -0800
commitd72a4043993d02b56873dfe40767cef9336685fc (patch)
tree907e6e585a28dfc756e50b5c92ba02387cd61513 /sys/src/libregexp/regexec.c
parent8b79ad59f14c4ced6ae2af6277d94b3265bd211d (diff)
Fix directory heuristic for long file names.
Tar specifies that a filename ending with '/' is a directory. We were incorrectly looking at the short name. This meant that when we have long filenames with a '/' at the 100th character, we would decide it was a directory. This change uses the long name when deciding the size for extraction, and trusts the header size when just skipping forward in the stream.
Diffstat (limited to 'sys/src/libregexp/regexec.c')
0 files changed, 0 insertions, 0 deletions