]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
newsyslog: Fix issues after r326616
authorbapt <bapt@FreeBSD.org>
Mon, 18 Dec 2017 09:35:04 +0000 (09:35 +0000)
committerbapt <bapt@FreeBSD.org>
Mon, 18 Dec 2017 09:35:04 +0000 (09:35 +0000)
commit83ea734edb7b620f36bfdca3f656db9353b4e824
tree3b3b0ade51c0f5fa67641f77625104a0712fd51c
parent622efbbef85725de691b2c8c3af8b30fdf025121
newsyslog: Fix issues after r326616

When building the command to execute for compression, newsyslog was modifying
the generic arguments array instead of its own copy.
Meaning on the second file to compress with the same arguments, the command line
was not the one expected.
Fix it by creating one copy of the arguments per execution and modifying that
copy.

While here, print the command line executed in verbose mode.

Reported by: many
usr.sbin/newsyslog/newsyslog.c