From owner-freebsd-current Thu May 2 23:40:59 2002 Delivered-To: freebsd-current@freebsd.org Received: from fw.wemm.org (12-232-135-171.client.attbi.com [12.232.135.171]) by hub.freebsd.org (Postfix) with ESMTP id CBD8637B416 for ; Thu, 2 May 2002 23:40:47 -0700 (PDT) Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by fw.wemm.org (8.11.6/8.11.6) with ESMTP id g436el408895 for ; Thu, 2 May 2002 23:40:47 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id 684963810; Thu, 2 May 2002 23:40:47 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Stephen Hocking Cc: current@FreeBSD.ORG Subject: Re: smmsp user check in Makefile.inc1 In-Reply-To: <200205022353.g42Nr2V14108@houston.rr.com> Date: Thu, 02 May 2002 23:40:47 -0700 From: Peter Wemm Message-Id: <20020503064047.684963810@overcee.wemm.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Stephen Hocking wrote: > > For those of us using NIS, it'd be nice if the check would be made against the > passwd and group maps if the local passwd and group don't have these users. Actually, the correct fix is to use the id command. It will automagically find it no matter what the passwd source is: peter@overcee[11:38pm]~src/tools/tools/vop_table-148> id -u smmsp 25 peter@overcee[11:38pm]~src/tools/tools/vop_table-149> echo $status 0 peter@overcee[11:38pm]~src/tools/tools/vop_table-150> id -u fake id: fake: no such user peter@overcee[11:38pm]~src/tools/tools/vop_table-151> echo $status 1 Care to whip up a patch? I'll commit it for you. (I'd do it but I'm working on something) Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message