Date: Sun, 21 Jul 1996 02:09:23 -0700 (PDT) From: Veggy Vinny <richardc@CSUA.Berkeley.EDU> To: Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de> Cc: FreeBSD-current users <freebsd-current@freebsd.org> Subject: Re: /usr/bin/passwd and finger output Message-ID: <Pine.PTX.3.91.960721020848.11997S-100000@soda.CSUA.Berkeley.EDU> In-Reply-To: <199607200720.JAA03329@uriah.heep.sax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 20 Jul 1996, J Wunsch wrote: > As Veggy Vinny wrote: > > > You're right about this one except I logged in as user vince then > > su to root so then I su -l dennis and then did the passwd, this used to > > work in -current as of 1.5 weeks ago but is there anyway around this? > > It should never have worked this way. If you verify the CVS file, > you'll notice that it used getlogin() all the time to obtain the > identity of the login user. > > As i wrote, i think this is in error, and it should use getuid. This > has other ill side-effects however, for cases where you've got more > than one user with the same UID. > > The optimal way would be perhaps to use getlogin(), but fall back to > getuid() in case the login user has a different UID than the current > user. Hmmm, okay... Just don't know why it worked then... Vince
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.PTX.3.91.960721020848.11997S-100000>