From owner-freebsd-bugs Sun Oct 26 22:20:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA18297 for bugs-outgoing; Sun, 26 Oct 1997 22:20:04 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA18290; Sun, 26 Oct 1997 22:20:02 -0800 (PST) (envelope-from gnats) Resent-Date: Sun, 26 Oct 1997 22:20:02 -0800 (PST) Resent-Message-Id: <199710270620.WAA18290@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, vasim@uddias.diaspro.com Received: from uddias.diaspro.com (root@uddias.diaspro.com [194.84.211.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA18105 for ; Sun, 26 Oct 1997 22:15:47 -0800 (PST) (envelope-from vasim@uddias.diaspro.com) Received: (from vasim@localhost) by uddias.diaspro.com (8.8.7/8.8.7) id LAA11655; Mon, 27 Oct 1997 11:11:44 +0500 (ES) Message-Id: <199710270611.LAA11655@uddias.diaspro.com> Date: Mon, 27 Oct 1997 11:11:44 +0500 (ES) From: Vasim Valejev Reply-To: vasim@uddias.diaspro.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/4862: pppd with PAP logs one user twice in wtmp Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 4862 >Category: bin >Synopsis: pppd with PAP logs one user twice in wtmp >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 26 22:20:01 PST 1997 >Last-Modified: >Originator: Vasim Valejev >Organization: DiasPro >Release: FreeBSD 3.0-CURRENT i386 >Environment: FreeBSD 3.0-CURRENT >Description: when user logging via PAP , pppd creates two records in wtmp file with one username and tty . Example (from last command) : *** baheman ttyd5 :PPP пн 27 окт 09:44 - 09:44 (00:00) baheman ttyd5 пн 27 окт 09:44 still logged in *** pppd options : modem auth +pap -chap login >How-To-Repeat: >Fix: I use next fix : *** auth.c.orig Fri Oct 10 12:02:54 1997 --- auth.c Mon Oct 27 11:10:48 1997 *************** *** 910,914 **** tty += 5; - logwtmp(tty, user, remote_name); /* Add wtmp login entry */ logged_in = TRUE; --- 910,913 ---- >Audit-Trail: >Unformatted: