Package: acct
Version: 6.6.4-2
Followup-For: Bug #864242

In my case I see that although I have logrotate installed, its wtmp
configuration is such that the rotation happens only if its size
exceeds 1 MB and therefore its rotation may not happen for quite a few
months and only /var/log/wtmp will exist. I believe this is the out of
the box configuration.

Maybe there should be a final fallback to /var/log/wtmp, so at least
something is produced, although it won't be monthly totals, but
since-the-last-wtmp-rotation totals. That may be better than nothing.

In any case, there should be some else branch if no form of wtmp.1 was
found, so that the rest of the script won't end up operating on empty
WTMP string resulting in cron mails with errors.

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.4.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages acct depends on:
ii  libc6     2.29-10
ii  lsb-base  11.1.0

acct recommends no packages.

acct suggests no packages.

-- no debconf information

Reply via email to