Lines Matching refs:file_header
11 file_header_t *file_header = archive_handle->file_header;
16 char *name = xstrdup(file_header->name);
24 if (((file_header->mode & S_IFMT) != S_IFDIR)
25 && (unlink(file_header->name) == -1)
29 file_header->name);
35 if (lstat(file_header->name, &statbuf) == -1) {
40 else if (statbuf.st_mtime <= file_header->mtime) {
43 "same age file exists", file_header->name);
48 else if ((unlink(file_header->name) == -1) && (errno != EISDIR)) {
50 file_header->name);
56 if (S_ISREG(file_header->mode) && (file_header->link_target)
57 && (file_header->size == 0)
60 res = link(file_header->link_target, file_header->name);
64 file_header->name,
65 file_header->link_target);
69 switch (file_header->mode & S_IFMT) {
72 dst_fd = xopen3(file_header->name, O_WRONLY | O_CREAT | O_EXCL,
73 file_header->mode);
74 bb_copyfd_exact_size(archive_handle->src_fd, dst_fd, file_header->size);
79 res = mkdir(file_header->name, file_header->mode);
83 bb_perror_msg("cannot make dir %s", file_header->name);
88 res = symlink(file_header->link_target, file_header->name);
94 file_header->name,
95 file_header->link_target);
102 res = mknod(file_header->name, file_header->mode, file_header->device);
106 bb_perror_msg("cannot create node %s", file_header->name);
115 lchown(file_header->name, file_header->uid, file_header->gid);
117 if ((file_header->mode & S_IFMT) != S_IFLNK) {
122 chmod(file_header->name, file_header->mode);
127 t.actime = t.modtime = file_header->mtime;
128 utime(file_header->name, &t);