From owner-freebsd-bugs Wed Jan 17 00:51:48 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id AAA26714 for bugs-outgoing; Wed, 17 Jan 1996 00:51:48 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id AAA26704 for ; Wed, 17 Jan 1996 00:51:41 -0800 (PST) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id JAA25721; Wed, 17 Jan 1996 09:51:27 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id JAA09076; Wed, 17 Jan 1996 09:51:27 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.3/8.6.9) id JAA02294; Wed, 17 Jan 1996 09:37:45 +0100 (MET) From: J Wunsch Message-Id: <199601170837.JAA02294@uriah.heep.sax.de> Subject: Re: getlogin() returns bogus username To: team_fbf@pristine.com.tw (ywliu) Date: Wed, 17 Jan 1996 09:37:44 +0100 (MET) Cc: aagero@aage.aage.priv.no, wosch@cs.tu-berlin.de, freebsd-bugs@FreeBSD.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199601171131.LAA11835@neptune.pristine.com.tw> from "ywliu" at Jan 17, 96 11:31:17 am X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-bugs@FreeBSD.org Precedence: bulk As ywliu wrote: > > Just a wild guess : can it be the '-' in per-stia confusing the program ? > Probably the suggested username should consist of numbers and alphabets. Nope, there used to be a bug with getlogin(). We all remember the various CVS commit message from Peter Wemm, where `sean' (i think) appeared as the name of the commiter. 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. I remember that Peter has been fixing the problem. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)