sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit 701957e03c82452502ee7d45924524ed406147b1
parent 13e48f0ea668db5d96459ec6150e460683326973
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun May 10 11:13:02 +0200

tar: compatibility, allow empty magic aswell

Diffstat:
tar.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tar.c b/tar.c @@ -401,7 +401,7 @@ chktar(struct header *h) if (h->prefix[0] == '\0' && h->name[0] == '\0') goto bad; - if (strncmp("ustar", h->magic, 5)) + if (h->magic[0] && strncmp("ustar", h->magic, 5)) goto bad; memcpy(tmp, h->chksum, sizeof(tmp)); for (i = 0; i < sizeof(tmp); i++)