header->header.typeflag = type;
finish_header (st, header, -1);
header->header.typeflag = type;
finish_header (st, header, -1);
off_t block_ordinal = -1;
int fd = 0;
bool is_dir;
struct tar_stat_info const *parent = st->parent;
bool top_level = ! parent;
off_t block_ordinal = -1;
int fd = 0;
bool is_dir;
struct tar_stat_info const *parent = st->parent;
bool top_level = ! parent;
void (*diag) (char const *) = 0;
if (interactive_option && !confirm ("add", p))
void (*diag) (char const *) = 0;
if (interactive_option && !confirm ("add", p))
- st->atime = restore_times[0] = get_stat_atime (&st->stat);
- st->mtime = restore_times[1] = get_stat_mtime (&st->stat);
+ st->atime = get_stat_atime (&st->stat);
+ st->mtime = get_stat_mtime (&st->stat);
- && set_file_atime (fd, p, restore_times) != 0)
+ && set_file_atime (fd, parentfd, name, st->atime) != 0)