aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-10-03 13:21:41 -0500
committerRob Landley <rob@landley.net>2019-10-03 13:21:41 -0500
commit46c40a7adee50a92a3eb8ed1d94ac2c9aa72591f (patch)
treeb085e5ce88123e08399c8c6750bd88cb84a000f9 /lib
parentbd277208335f585151641a9b5252f042732aa53b (diff)
downloadtoybox-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.c b/lib/lib.c
index ab66b66e..cfb71ed3 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -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;