]> git.ipfire.org Git - thirdparty/tar.git/commit
When given -c -a, issue a warning if no compressor is associated with the suffix.
authorSergey Poznyakoff <gray@gnu.org>
Sun, 14 Jan 2024 21:54:33 +0000 (23:54 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Sun, 14 Jan 2024 22:00:02 +0000 (00:00 +0200)
commitb4d1fa77b69d4b7a63db9c458a808d058b71bd30
tree394c9759f9832a3cca3862d77be74763d524b148
parent66eaa2f821d45f38220f303e4f422f943f0b307a
When given -c -a, issue a warning if no compressor is associated with the suffix.

* src/suffix.c (find_compression_suffix): Always return stripped
archive name length in the last argument.  Return 0 if there is no
suffix.
(find_compression_program): Remove.
(set_compression_program_by_suffix): Take third argument, controlling
whether to issue a warning if no suitable compression program is found
for the suffix.
* src/common.h (set_compression_program_by_suffix): Change prototype.
* src/buffer.c, src/tar.c: All uses of set_compression_program_by_suffix
changed.
src/buffer.c
src/common.h
src/suffix.c
src/tar.c