* src/incremen.c (show_snapshot_field_ranges)
(write_directory_file_entry): Use simpler array size expression,
one that evaluates to the same value. This works around a compiler
bug with IBM XL C. Problem reported by Yannick Bergeron in
<http://lists.gnu.org/archive/html/bug-tar/2014-01/msg00009.html>.
entry = dumpdir_next (itr))
{
char *full_name = namebuf_name (nbuf, entry + 1);
entry = dumpdir_next (itr))
{
char *full_name = namebuf_name (nbuf, entry + 1);
if (*entry == 'I') /* Ignored entry */
*entry = 'N';
else if (excluded_name (full_name))
if (*entry == 'I') /* Ignored entry */
*entry = 'N';
else if (excluded_name (full_name))
if (diag)
{
file_removed_diag (full_name, false, diag);
if (diag)
{
file_removed_diag (full_name, false, diag);
else if (directory->children == ALL_CHILDREN)
pd_flag |= PD_FORCE_CHILDREN | ALL_CHILDREN;
*entry = 'D';
else if (directory->children == ALL_CHILDREN)
pd_flag |= PD_FORCE_CHILDREN | ALL_CHILDREN;
*entry = 'D';
stsub.parent = st;
procdir (full_name, &stsub, pd_flag, entry);
restore_parent_fd (&stsub);
stsub.parent = st;
procdir (full_name, &stsub, pd_flag, entry);
restore_parent_fd (&stsub);
*entry = 'N';
else
*entry = 'Y';
*entry = 'N';
else
*entry = 'Y';
tar_stat_destroy (&stsub);
}
}
tar_stat_destroy (&stsub);
}
}
else if (directory->tagfile)
maketagdumpdir (directory);
}
else if (directory->tagfile)
maketagdumpdir (directory);
}
namebuf_free (nbuf);
free (dirp);
namebuf_free (nbuf);
free (dirp);
show_snapshot_field_ranges (void)
{
struct field_range const *p;
show_snapshot_field_ranges (void)
{
struct field_range const *p;
- char minbuf[max (SYSINT_BUFSIZE, INT_BUFSIZE_BOUND (intmax_t))];
- char maxbuf[max (SYSINT_BUFSIZE, INT_BUFSIZE_BOUND (uintmax_t))];
+ char minbuf[SYSINT_BUFSIZE];
+ char maxbuf[SYSINT_BUFSIZE];
printf("This tar's snapshot file field ranges are\n");
printf (" (%-15s => [ %s, %s ]):\n\n", "field name", "min", "max");
printf("This tar's snapshot file field ranges are\n");
printf (" (%-15s => [ %s, %s ]):\n\n", "field name", "min", "max");
if (DIR_IS_FOUND (directory))
{
if (DIR_IS_FOUND (directory))
{
- char buf[max (SYSINT_BUFSIZE, INT_BUFSIZE_BOUND (intmax_t))];
+ char buf[SYSINT_BUFSIZE];
char const *s;
s = DIR_IS_NFS (directory) ? "1" : "0";
char const *s;
s = DIR_IS_NFS (directory) ? "1" : "0";