Support >INT_MAX -C dirs

* src/extract.c (struct delayed_set_stat, struct delayed_link):
* src/misc.c (normalize_filename, wd_count, chdir_count)
(chdir_arg, tar_getcdpath):
* src/names.c (name_gather, addname, add_hierarchy_to_namelist):
* src/unlink.c (struct deferred_unlink, flush_deferred_unlinks):
Use idx_t, not int, for directory indexes, so as to not
limit their number to INT_MAX; this is theoretically possible
if -T is used.
* src/names.c (name_next_elt, name_next):
Use bool for boolean.
This commit is contained in:
Paul Eggert
2024-08-04 01:41:43 -07:00
parent 390950282d
commit cc691f8272
6 changed files with 44 additions and 49 deletions
+1 -1
View File
@@ -1395,7 +1395,7 @@ create_archive (void)
else
{
const char *name;
while ((name = name_next (1)) != NULL)
while ((name = name_next (true)))
if (!excluded_name (name, NULL))
dump_file (0, name, name);
}