#define obstack_chunk_free free
#include <obstack.h>
+#include <fnmatch.h>
+
bool xheader_protected_pattern_p (const char *pattern);
bool xheader_protected_keyword_p (const char *keyword);
xheader_store (char const *keyword, struct tar_stat_info const *st, void *data)
{
struct xhdr_tab const *t;
- char *value;
if (extended_header.buffer)
return;
{
uintmax_t u;
if (xstrtoumax (arg, NULL, 10, &u, "") == LONGINT_OK)
- st->stat.st_size = u;
+ st->archive_file_size = st->stat.st_size = u;
}
static void
{
uintmax_t u;
if (xstrtoumax (arg, NULL, 10, &u, "") == LONGINT_OK)
- st->archive_file_size = u;
+ st->stat.st_size = u;
}
static void
{
if (st->sparse_map_avail == st->sparse_map_size)
{
- size_t newsize = st->sparse_map_size *= 2;
+ st->sparse_map_size *= 2;
st->sparse_map = xrealloc (st->sparse_map,
st->sparse_map_size
* sizeof st->sparse_map[0]);