]> git.ipfire.org Git - thirdparty/tar.git/commit
Support >INT_MAX -C dirs
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 3 Aug 2024 16:35:46 +0000 (09:35 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Aug 2024 08:41:43 +0000 (01:41 -0700)
commitcc691f82727f0e0f274cb4e9490bb02c14dc8931
tree524d3e306d3463721557b182c47f400a37e716a2
parent390950282d98d82a64fe7a17f8a897bcc0b3f41e
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.
src/common.h
src/create.c
src/extract.c
src/misc.c
src/names.c
src/unlink.c