From owner-freebsd-bugs Thu Feb 24 15:10: 8 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id B4E9837BBA0 for ; Thu, 24 Feb 2000 15:10:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id PAA85548; Thu, 24 Feb 2000 15:10:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from heimdall.piqnet.org (adsl-63-197-64-194.dsl.snfc21.pacbell.net [63.197.64.194]) by hub.freebsd.org (Postfix) with ESMTP id 3423437BC05 for ; Thu, 24 Feb 2000 15:02:04 -0800 (PST) (envelope-from joelh@detlev.piqnet.org) Received: from detlev.piqnet.org (adsl-63-197-64-195.dsl.snfc21.pacbell.net [63.197.64.195]) by heimdall.piqnet.org (8.9.3/8.9.3) with ESMTP id PAA11175 for ; Thu, 24 Feb 2000 15:06:31 -0800 (PST) (envelope-from joelh@detlev.piqnet.org) Received: (from joelh@localhost) by detlev.piqnet.org (8.9.3/8.9.3) id PAA79693; Thu, 24 Feb 2000 15:03:44 -0800 (PST) (envelope-from joelh) Message-Id: <200002242303.PAA79693@detlev.piqnet.org> Date: Thu, 24 Feb 2000 15:03:44 -0800 (PST) From: Joel Ray Holveck Reply-To: joelh@gnu.org To: freefall-gnats@detlev.piqnet.org X-Send-Pr-Version: 3.2 Subject: bin/16971: Exiting from /usr/sbin/login does not restore utmp Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 16971 >Category: bin >Synopsis: Exiting from /usr/sbin/login does not restore utmp >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 24 15:10:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Joel Ray Holveck >Release: FreeBSD 4.0-CURRENT i386 >Organization: >Environment: Current from 10 Feb >Description: After login exits when invoked from the shell, it does not restore utmp to indicate the old user. >How-To-Repeat: The following has been minorly edited to eliminate motds, etc. joelh's shell is bash 2.02. It runs login out of /usr/bin and forks as if it were running any other program. The telnet is to force a clean environment. detlev$ telnet 127.0.0.1 Trying 127.0.0.1... Connected to localhost (127.0.0.1). Escape character is '^]'. FreeBSD/i386 (detlev.piqnet.org) (ttypb) login: joelh s/key 94 de20359 Password: Last login: Thu Feb 24 14:31:14 from localhost Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.0-CURRENT (DETLEV) #0: Fri Feb 11 01:37:14 PST 2000 detlev$ tty /dev/ttypb detlev$ w | grep pb joelh pb localhost 2:34PM - grep pb detlev$ login smt Password: Last login: Thu Feb 24 14:31:27 on ttypa Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.0-CURRENT (DETLEV) #0: Fri Feb 11 01:37:14 PST 2000 bash-2.02$ w | grep pb smt pb - 2:34PM - grep pb bash-2.02$ logout detlev$ w | grep pb smt pb - 2:34PM - grep pb detlev$ logout >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message