Public bug reported:

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.

** Affects: acct (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "acct.patch"
   https://bugs.launchpad.net/bugs/1886048/+attachment/5388982/+files/acct.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1886048

Title:
  Monthly cron generates error if wtmp hasn't been rotated

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/acct/+bug/1886048/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to