From: François Pinard Date: Wed, 16 Nov 1994 02:43:03 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=96e5cf3bbe8c4cc56904034b3d95b9d2e1ce3850;p=chaz%2Ftar *** empty log message *** --- diff --git a/src/create.c b/src/create.c index 384e7a3..d3c54db 100644 --- a/src/create.c +++ b/src/create.c @@ -318,11 +318,11 @@ badfile: critical_error = 1; goto badfile; } - strncpy(header->header.linkname, + strncpy(header->header.arch_linkname, link_name,NAMSIZ); /* Force null truncated */ - header->header.linkname [NAMSIZ-1] = 0; + header->header.arch_linkname [NAMSIZ-1] = 0; header->header.linkflag = LF_LINK; finish_header(header); @@ -621,7 +621,7 @@ badfile: critical_error = 1; goto badfile; } - strcpy (header->header.linkname, buf); + strcpy (header->header.arch_linkname, buf); header->header.linkflag = LF_SYMLINK; finish_header(header); /* Nothing more to do to it */ if (f_remove_files) @@ -1199,8 +1199,8 @@ start_header(name, st) msg("Removing leading / from absolute path names in the archive."); } } - strncpy(header->header.name, name, NAMSIZ); - header->header.name[NAMSIZ-1] = '\0'; + strncpy(header->header.arch_name, name, NAMSIZ); + header->header.arch_name[NAMSIZ-1] = '\0'; to_oct((long) (st->st_mode & 07777), 8, header->header.mode);