]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
newsyslog: fix compression arglist construction
authorbapt <bapt@FreeBSD.org>
Mon, 30 Jul 2018 15:46:24 +0000 (15:46 +0000)
committerbapt <bapt@FreeBSD.org>
Mon, 30 Jul 2018 15:46:24 +0000 (15:46 +0000)
commitc562453022669453a7f0d56c2ff004d97e502310
treeaca2194592067375791863a569b2a2eb80bf1a92
parent405e11310c5dcd3c41bf9702b852f544b1cc0e85
newsyslog: fix compression arglist construction

Reuse of the index variable in two nested loops resulted in only the first
argument in the list being used (fine for gzip, not fine for zstd). Also
add tests for xz and zstd, and fix the COMPRESS_SUFFIX_MAXLEN macro.

Submitted by: dnelson_1901_yahoo.com
Differential Revision: https://reviews.freebsd.org/D16509
usr.sbin/newsyslog/newsyslog.c
usr.sbin/newsyslog/tests/legacy_test.sh