]> git.ipfire.org Git - thirdparty/asterisk.git/commit
logrotate: Fix duplicate log entries.
authorNaveen Albert <asterisk@phreaknet.org>
Thu, 18 May 2023 16:55:45 +0000 (16:55 +0000)
committerGeorge Joseph <gtjoseph@users.noreply.github.com>
Thu, 25 May 2023 16:38:50 +0000 (10:38 -0600)
commit2159ec853275b53ac12ed697506cf44637504b17
treed72729cff48989c10652c3847e5b3981469f9628
parent5dac935f610ed25e15d24d62a4385ed0317202d3
logrotate: Fix duplicate log entries.

The Asterisk logrotate script contains explicit
references to files with the .log extension,
which are also included when *log is expanded.
This causes issues with newer versions of logrotate.
This fixes this by ensuring that a log file cannot
be referenced multiple times after expansion occurs.

Resolves: #96
ASTERISK-30442
Reported by: EN Barnett
Tested by: EN Barnett
contrib/scripts/asterisk.logrotate