From owner-freebsd-bugs Wed Jan 17 05:15:00 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA10590 for bugs-outgoing; Wed, 17 Jan 1996 05:15:00 -0800 (PST) Received: from mail.mks.com (mks-gate.mks.com [142.77.7.224]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id FAA10550 for ; Wed, 17 Jan 1996 05:14:34 -0800 (PST) Received: from mks.com (giga.mks.com [1.0.0.51]) by mail.mks.com (8.6.8.1/DEKA-950919b) with SMTP id IAA13847; Wed, 17 Jan 1996 08:13:22 -0500 Received: from worf by mks.com (4.1/GIGA-950913a) id AA16659; Wed, 17 Jan 96 08:13:21 EST To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Cc: team_fbf@pristine.com.tw (ywliu), aagero@aage.aage.priv.no, wosch@cs.tu-berlin.de, freebsd-bugs@freebsd.org Subject: Re: getlogin() returns bogus username In-Reply-To: Your message of "Wed, 17 Jan 1996 09:37:44 +0100." <199601170837.JAA02294@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Wed, 17 Jan 1996 08:13:20 -0500 Message-Id: <21377.821884400@worf.mks.com> From: "David J. Fiander" Sender: owner-bugs@freebsd.org Precedence: bulk > > Lemme think... the problem happened whenever somebody was logged in > via telnet. The getlogin() name was once per session, and the entire > inetd(8) uses a single session. telnetd doesn't change the session. > That's odd. I would expect login(1) to set the session up. The telnetd just manages the network connect; it's login that's responsible for authentication, which is what getlogin() is part of. (wanders off to check his 2.1R CD.) Yup, login.c, line 486 calls setlogin(), and syslog()s failures. - David