diff options
| author | Ori Bernstein <ori@eigenstate.org> | 2019-11-05 10:48:51 -0800 |
|---|---|---|
| committer | Ori Bernstein <ori@eigenstate.org> | 2019-11-05 10:48:51 -0800 |
| commit | d72a4043993d02b56873dfe40767cef9336685fc (patch) | |
| tree | 907e6e585a28dfc756e50b5c92ba02387cd61513 /lib | |
| parent | 8b79ad59f14c4ced6ae2af6277d94b3265bd211d (diff) | |
| download | plan9front-d72a4043993d02b56873dfe40767cef9336685fc.tar.xz | |
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 'lib')
0 files changed, 0 insertions, 0 deletions
