From owner-freebsd-commit Tue Oct 31 15:45:43 1995 Return-Path: owner-commit Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id PAA02541 for freebsd-commit-outgoing; Tue, 31 Oct 1995 15:45:43 -0800 Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id PAA02529 for cvs-all-outgoing; Tue, 31 Oct 1995 15:45:40 -0800 Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id PAA02519 for cvs-CVSROOT-outgoing; Tue, 31 Oct 1995 15:45:38 -0800 Received: from sequent.kiae.su (sequent.kiae.su [144.206.136.6]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id PAA02510 ; Tue, 31 Oct 1995 15:45:30 -0800 Received: by sequent.kiae.su id AA13390 (5.65.kiae-2 ); Wed, 1 Nov 1995 02:42:15 +0300 Received: by sequent.KIAE.su (UUMAIL/2.0); Wed, 1 Nov 95 02:42:14 +0300 Received: (from ache@localhost) by ache.dialup.demos.ru (8.6.12/8.6.12) id CAA01772; Wed, 1 Nov 1995 02:39:08 +0300 To: CVS-commiters@freefall.freebsd.org, cvs-CVSROOT@freefall.freebsd.org, Peter Wemm References: <199510312317.PAA00986@freefall.freebsd.org> In-Reply-To: <199510312317.PAA00986@freefall.freebsd.org>; from Peter Wemm at Tue, 31 Oct 1995 15:17:16 -0800 Message-Id: Organization: Olahm Ha-Yetzirah Date: Wed, 1 Nov 1995 02:39:07 +0300 (MSK) X-Mailer: Mail/@ [v2.40 FreeBSD] From: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (aka Andrey A. Chernov, Black Mage) X-Class: Fast Subject: Re: cvs commit: CVSROOT log_accum.pl Lines: 26 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 1057 Sender: owner-commit@FreeBSD.org Precedence: bulk In message <199510312317.PAA00986@freefall.freebsd.org> Peter Wemm writes: >peter 95/10/31 15:17:14 (peter/633/peter) > Modified: . log_accum.pl > Log: > For the moment, prefer the getpwuid($<) value over getlogin.. > Remove debugging output again.. (which proved that getlogin returns the > wrong value sometimes..) getlogin depends on internal variable _logname_valid which is set after first sucessful getlogin call, then getlogin simple return its static data and even not issue syscall!!! How perl calls C-functions, it is the question... Maybe it call each C-function in the fork? I.e. _longname_valid always 0 for getlogin? Then it is perl bug, it seems that it change uids on the fly, then call getlogin for each of them. -- Andrey A. Chernov : And I rest so composedly, /Now, in my bed, ache@astral.msk.su : That any beholder /Might fancy me dead - http://dt.demos.su/~ache : Might start at beholding me, /Thinking me dead. RELCOM Team,FreeBSD Team : E.A.Poe From "For Annie" 1849