From owner-freebsd-bugs Wed Jul 1 05:41:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA11398 for freebsd-bugs-outgoing; Wed, 1 Jul 1998 05:41:09 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA11391 for ; Wed, 1 Jul 1998 05:41:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id FAA28593; Wed, 1 Jul 1998 05:40:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA10664; Wed, 1 Jul 1998 05:33:20 -0700 (PDT) (envelope-from nobody) Message-Id: <199807011233.FAA10664@hub.freebsd.org> Date: Wed, 1 Jul 1998 05:33:20 -0700 (PDT) From: tarush@mindspring.com To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: bin/7137: /usr/sbin/ac (run from /etc/monthly) ignores logins on ttyv*, reports 0.0 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 7137 >Category: bin >Synopsis: /usr/sbin/ac (run from /etc/monthly) ignores logins on ttyv*, reports 0.0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 1 05:40:01 PDT 1998 >Last-Modified: >Originator: Tom Rush >Organization: >Release: 2.2.5-RELEASE >Environment: FreeBSD fbsd.rush.net 2.2.5-RELEASE FreeBSD 2.2.5-RELEASE #19: Thu Jun 25 14:52:27 EDT 1998 tarush@fbsd.rush.net:/usr/src/sys/compile/AC4WQ i386 >Description: /var/log/wtmp entries for ptys are treated differently in ac, since they may not be logins. The code for determining whether it is a pty entry is broken. I have checked -current, the problem is still there. >How-To-Repeat: Just run "ac". >Fix: This patch is for the file in -current: 506c506 < * if they came in on tty[p-y]*, then it is only --- > * if they came in on tty[p-sP-S]*, then it is only 511c511 < strchr("pqrstuvwxy", usr.ut_line[3]) == 0 || --- > strchr("pqrsPQRS", usr.ut_line[3]) == 0 || >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message