]> Dogcows Code - chaz/tar/commitdiff
*** empty log message ***
authorFrançois Pinard <pinard@iro.umontreal.ca>
Wed, 16 Nov 1994 02:43:03 +0000 (02:43 +0000)
committerFrançois Pinard <pinard@iro.umontreal.ca>
Wed, 16 Nov 1994 02:43:03 +0000 (02:43 +0000)
src/create.c

index 384e7a34e2594856aff3d3430cc33cc93bde53e1..d3c54db5ad3f086ddfc483218dc6b63208cae049 100644 (file)
@@ -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);
This page took 0.024259 seconds and 4 git commands to generate.