Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  1 Nov 1995 02:39:07 +0300 (MSK)
From:      =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (aka Andrey A. Chernov, Black Mage) <ache@astral.msk.su>
To:        CVS-commiters@freefall.freebsd.org, cvs-CVSROOT@freefall.freebsd.org, Peter Wemm <peter@freefall.freebsd.org>
Subject:   Re: cvs commit: CVSROOT log_accum.pl
Message-ID:  <aBREhbmuj6@ache.dialup.demos.ru>
In-Reply-To: <199510312317.PAA00986@freefall.freebsd.org>; from Peter Wemm at Tue, 31 Oct 1995 15:17:16 -0800
References:  <199510312317.PAA00986@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aBREhbmuj6>