tar.c | 59 char *name, *link_target, *uname, *gname; member in struct:file_header 396 if (S_ISREG(file_hdr->mode) && file_hdr->link_target) { 397 if (link(file_hdr->link_target, file_hdr->name)) 398 perror_msg("can't link '%s' -> '%s'",file_hdr->name, file_hdr->link_target); 414 if (symlink(file_hdr->link_target, file_hdr->name)) 415 perror_msg("can't link '%s' -> '%s'",file_hdr->name, file_hdr->link_target); 640 file_hdr->link_target = xmalloc(sz + 1); 641 memcpy(file_hdr->link_target, tar.link, sz); 642 file_hdr->link_target[sz] = '\0'; 710 free(file_hdr->link_target); [all...] |