debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #03372
[Bug 1886048] Re: Monthly cron generates error if wtmp hasn't been rotated
This was fixed in acct/6.6.4-3, present in "groovy".
** Bug watch added: Debian Bug tracker #864242
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864242
** Also affects: acct (Debian) via
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864242
Importance: Unknown
Status: Unknown
** Changed in: acct (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to acct in Ubuntu.
https://bugs.launchpad.net/bugs/1886048
Title:
Monthly cron generates error if wtmp hasn't been rotated
Status in acct package in Ubuntu:
Fix Released
Status in acct package in Debian:
Unknown
Bug description:
The logrotate config for wtmp on focal looks like this:
# no packages own wtmp -- we'll rotate it here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
It only rotates if wtmp is larger than 1M. In the case of a fresh
install that has a wtmp smaller than 1M it won't rotate and
/var/log/wtmp.1 won't exist, in this case we should use /var/log/wtmp
I've attached a patch.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/acct/+bug/1886048/+subscriptions