From: François Pinard Date: Wed, 16 Nov 1994 02:42:38 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=348d718296ad01533610a342f4f20f82faf43c31;p=chaz%2Ftar *** empty log message *** --- diff --git a/src/create.c b/src/create.c index ad11983..3de1c96 100644 --- a/src/create.c +++ b/src/create.c @@ -152,7 +152,7 @@ create_archive() open_archive(0); /* Open for writing */ if(f_gnudump) { - char *buf = ck_malloc(NAME_MAX); + char *buf = ck_malloc(PATH_MAX); char *q,*bufp; collect_and_sort_names(); @@ -1219,6 +1219,8 @@ start_header(name, st) if (f_standard) { header->header.linkflag = LF_NORMAL; /* New default */ strcpy(header->header.magic, TMAGIC); /* Mark as Unix Std */ + /* Fill in the POSIX TVERSION field after magic. */ + header->header.magic[6] = header->header.magic[7] = '0'; finduname(header->header.uname, st->st_uid); findgname(header->header.gname, st->st_gid); }