[Bug 1886048] [NEW] Monthly cron generates error if wtmp hasn't been rotated
Rowan Wookey
1886048 at bugs.launchpad.net
Thu Jul 2 13:09:39 UTC 2020
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
Foundations Bugs, 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:
New
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
More information about the foundations-bugs
mailing list