From: millert Date: Mon, 10 Feb 1997 06:35:39 +0000 (+0000) Subject: Don't freak out on archives with only a single block of 0's as X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a794bd7acbe25a2fd29393a4ed61d25c8076b44f;p=openbsd Don't freak out on archives with only a single block of 0's as trailer (used to require two blocks of 0's but some tar's only put in one). --- diff --git a/bin/pax/tar.h b/bin/pax/tar.h index 73ae8e096ad..a13a5ef47d7 100644 --- a/bin/pax/tar.h +++ b/bin/pax/tar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tar.h,v 1.2 1996/06/23 14:20:44 deraadt Exp $ */ +/* $OpenBSD: tar.h,v 1.3 1997/02/10 06:35:39 millert Exp $ */ /* $NetBSD: tar.h,v 1.3 1995/03/21 09:07:51 cgd Exp $ */ /*- @@ -46,7 +46,7 @@ #define CHK_LEN 8 /* length of checksum field */ #define TNMSZ 100 /* size of name field */ #ifdef _PAX_ -#define NULLCNT 2 /* number of null blocks in trailer */ +#define NULLCNT 1 /* number of null blocks in trailer */ #define CHK_OFFSET 148 /* start of chksum field */ #define BLNKSUM 256L /* sum of checksum field using ' ' */ #endif /* _PAX_ */