if (archive_names == 0)
FATAL_ERROR ((0, 0, _("No archive name given")));
- destroy_stat (¤t_stat_info);
+ tar_stat_destroy (¤t_stat_info);
save_name = 0;
real_s_name = 0;
record_start->header.typeflag = GNUTYPE_VOLHDR;
TIME_TO_CHARS (start_time, record_start->header.mtime);
- finish_header (record_start, -1);
+ finish_header (¤t_stat_info, record_start, -1);
#if 0
current_block++;
#endif
volume_label_option, volno);
TIME_TO_CHARS (start_time, record_start->header.mtime);
record_start->header.typeflag = GNUTYPE_VOLHDR;
- finish_header (record_start, -1);
+ finish_header (¤t_stat_info, record_start, -1);
}
if (real_s_name)
record_start->oldgnu_header.offset);
tmp = verbose_option;
verbose_option = 0;
- finish_header (record_start, -1);
+ finish_header (¤t_stat_info, record_start, -1);
verbose_option = tmp;
if (volume_label_option)
sys_wait_for_child (child_pid);
- destroy_stat (¤t_stat_info);
+ tar_stat_destroy (¤t_stat_info);
if (save_name)
free (save_name);
if (real_s_name)
do
{
prev_status = status;
- destroy_stat (¤t_stat_info);
+ tar_stat_destroy (¤t_stat_info);
xheader_destroy (&extended_header);
status = read_header (false);
decode_header (current_header, ¤t_stat_info, ¤t_format, 0);
if (verbose_option)
- print_header (-1);
+ print_header (¤t_stat_info, -1);
if (incremental_option && current_header->header.typeflag == GNUTYPE_DUMPDIR)
{
#endif
void
-print_header (off_t block_ordinal)
+print_header (struct tar_stat_info *st, off_t block_ordinal)
{
char modes[11];
char const *time_stamp;
- char *temp_name = current_stat_info.orig_file_name ? current_stat_info.orig_file_name : current_stat_info.file_name;
+ char *temp_name = st->orig_file_name ? st->orig_file_name : st->file_name;
/* These hold formatted ints. */
char uform[UINTMAX_STRSIZE_BOUND], gform[UINTMAX_STRSIZE_BOUND];
break;
}
- decode_mode (current_stat_info.stat.st_mode, modes + 1);
+ decode_mode (st->stat.st_mode, modes + 1);
/* Time stamp. */
- time_stamp = tartime (current_stat_info.stat.st_mtime);
+ time_stamp = tartime (st->stat.st_mtime);
/* User and group names. */
- if (current_stat_info.uname && current_format != V7_FORMAT
+ if (st->uname && current_format != V7_FORMAT
&& !numeric_owner_option)
- user = current_stat_info.uname;
+ user = st->uname;
else
{
/* Try parsing it as an unsigned integer first, and as a
}
}
- if (current_stat_info.gname && current_format != V7_FORMAT
+ if (st->gname && current_format != V7_FORMAT
&& !numeric_owner_option)
- group = current_stat_info.gname;
+ group = st->gname;
else
{
/* Try parsing it as an unsigned integer first, and as a
case CHRTYPE:
case BLKTYPE:
strcpy (size,
- STRINGIFY_BIGINT (major (current_stat_info.stat.st_rdev), uintbuf));
+ STRINGIFY_BIGINT (major (st->stat.st_rdev), uintbuf));
strcat (size, ",");
strcat (size,
- STRINGIFY_BIGINT (minor (current_stat_info.stat.st_rdev), uintbuf));
+ STRINGIFY_BIGINT (minor (st->stat.st_rdev), uintbuf));
break;
case GNUTYPE_SPARSE:
strcpy (size,
uintbuf));
break;
default:
- strcpy (size, STRINGIFY_BIGINT (current_stat_info.stat.st_size, uintbuf));
+ strcpy (size, STRINGIFY_BIGINT (st->stat.st_size, uintbuf));
break;
}
switch (current_header->header.typeflag)
{
case SYMTYPE:
- fprintf (stdlis, " -> %s\n", quotearg (current_stat_info.link_name));
+ fprintf (stdlis, " -> %s\n", quotearg (st->link_name));
break;
case LNKTYPE:
- fprintf (stdlis, _(" link to %s\n"), quotearg (current_stat_info.link_name));
+ fprintf (stdlis, _(" link to %s\n"), quotearg (st->link_name));
break;
default: