aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;