From owner-freebsd-bugs Thu Jan 8 14:32:41 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA09823 for bugs-outgoing; Thu, 8 Jan 1998 14:32:41 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA09757; Thu, 8 Jan 1998 14:32:23 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 8 Jan 1998 14:32:23 -0800 (PST) Resent-Message-Id: <199801082232.OAA09757@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, jonny@coppe.ufrj.br Received: from gaia.coppe.ufrj.br (cisigw.coppe.ufrj.br [146.164.5.200]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA13423 for ; Tue, 6 Jan 1998 16:47:32 -0800 (PST) (envelope-from jonny@coppe.ufrj.br) Received: (from jonny@localhost) by gaia.coppe.ufrj.br (8.8.8/8.8.8) id WAA07422; Tue, 6 Jan 1998 22:47:30 -0200 (EDT) (envelope-from jonny) Message-Id: <199801070047.WAA07422@gaia.coppe.ufrj.br> Date: Tue, 6 Jan 1998 22:47:30 -0200 (EDT) From: Joao Carlos Mendes Luis Reply-To: jonny@coppe.ufrj.br To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/5448: /etc/monthly reports are incorrect Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5448 >Category: bin >Synopsis: /etc/monthly reports are incorrect >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 8 14:32:21 PST 1998 >Last-Modified: >Originator: Joao Carlos Mendes Luis >Organization: COPPE/UFRJ >Release: FreeBSD 2.2.5-STABLE i386 >Environment: FreeBSD -stable, but think -current also suffers this Default configuration from installation >Description: /etc/monthly generates reports with ac(8), which reads /var/log/wtmp It's expected to give some monthly accounting. But /var/log/wtmp is rotated from crontab, and does not respects /etc/monthly, making the reports without any accuracy. >How-To-Repeat: Wait until cron rotates /var/log/wtmp just a few hours before running /etc/monthly, and see the extremely small times reported. It happened to me this month. :) >Fix: Execute /var/log/wtmp rotation at /etc/monthly. >Audit-Trail: >Unformatted: