From owner-freebsd-current Sat Jul 20 00:21:37 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA21801 for current-outgoing; Sat, 20 Jul 1996 00:21:37 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id AAA21786 for ; Sat, 20 Jul 1996 00:21:32 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id JAA12091 for ; Sat, 20 Jul 1996 09:21:30 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id JAA25705 for freebsd-current@FreeBSD.org; Sat, 20 Jul 1996 09:21:30 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id JAA03329 for freebsd-current@FreeBSD.org; Sat, 20 Jul 1996 09:20:42 +0200 (MET DST) From: J Wunsch Message-Id: <199607200720.JAA03329@uriah.heep.sax.de> Subject: Re: /usr/bin/passwd and finger output To: freebsd-current@FreeBSD.org (FreeBSD-current users) Date: Sat, 20 Jul 1996 09:20:41 +0200 (MET DST) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from Veggy Vinny at "Jul 19, 96 08:07:09 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk 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. -- 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. ;-)