Package: logrotate
Version: 3.8.7-2
Severity: important

Hi,

After upgrading from 3.8.1-4 to 3.8.7-1 (and -2) the argument passed to
the postrotate script is the base logfile name, i.e. without the
extension.  This is a distinct change from the behaviour in the old
version.

I use this to run some analysis on the previous day's mail log, and I
was wondering why I didn't get any data anymore after upgrading the
system to jessie.

I can't find any documentation about this change, so I'm wondering
whether it's intentional or not. For me it makes it difficult to process
the old log file: I now have to glob the base name and find the newest
one, which is silly as logrotate knows what the name is (I use dateext
to prevent having to transfer all logfiles again every day for the
backup, so it's not as simple as just tacking on a ".0").

See also an earlier bug report, #519432, where we discussed basically
the same thing :)

I marked this bug important as it's an undocumented change in behaviour
which can cause problems.


thanks,
Paul

Reply via email to