diff options
author | Rob Landley <rob@landley.net> | 2019-10-03 13:21:41 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-10-03 13:21:41 -0500 |
commit | 46c40a7adee50a92a3eb8ed1d94ac2c9aa72591f (patch) | |
tree | b085e5ce88123e08399c8c6750bd88cb84a000f9 /lib | |
parent | bd277208335f585151641a9b5252f042732aa53b (diff) | |
download | toybox-46c40a7adee50a92a3eb8ed1d94ac2c9aa72591f.tar.gz |
Oops, part of the old tar support fix is in lib, check that in too.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1400,7 +1400,7 @@ int is_tar_header(void *pkt) int i = 0; if (p[257] && memcmp("ustar", p+257, 5)) return 0; - if (p[148] != '0') return 0; + if (p[148] != '0' && p[148] != ' ') return 0; sscanf(p+148, "%8o", &i); return i && tar_cksum(pkt) == i; |