From owner-freebsd-bugs@FreeBSD.ORG Sun Jul 13 04:10:39 2003 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A23B37B401; Sun, 13 Jul 2003 04:10:39 -0700 (PDT) Received: from gw.pelleg.org (gw.pelleg.org [205.201.13.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B91943FE3; Sun, 13 Jul 2003 04:10:38 -0700 (PDT) (envelope-from dpelleg@cs.cmu.edu) Received: from lank.auton.cs.cmu.edu (lank.wburn [192.168.3.41]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "gw.pelleg.org", Issuer "Dan Pelleg" (verified OK)) by gw.pelleg.org (Postfix) with ESMTP id C010C5A23; Sun, 13 Jul 2003 07:10:36 -0400 (EDT) Received: by lank.auton.cs.cmu.edu (Postfix, from userid 7675) id 0568DDA; Sun, 13 Jul 2003 07:10:33 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16145.15913.213035.802098@gargle.gargle.HOWL> Date: Sun, 13 Jul 2003 07:10:33 -0400 To: Kris Kennaway In-Reply-To: <200307130613.h6D6DKiZ094843@freefall.freebsd.org> References: <200307130613.h6D6DKiZ094843@freefall.freebsd.org> X-Mailer: VM 7.14 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid From: Dan Pelleg cc: freebsd-bugs@FreeBSD.org Subject: Re: bin/43582: passwd(1) fails on nonexistent users X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dan Pelleg List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2003 11:10:39 -0000 Here is the base-64 decoding of it. Since submitting this I lost the ability to easily trigger the condition or test the patch. It also seems the patch is reversed. --- usr.bin/passwd/passwd.c Sat Oct 19 19:42:45 2002 +++ usr.bin/passwd/passwd.c.orig Sat Oct 19 19:02:49 2002 @@ -220,13 +220,6 @@ fprintf(stderr, "realm %s\n", realm); exit(krb_passwd(argv[0], iflag, rflag, uflag)); } -#ifdef YP - /* - * As we fall back to local_passwd, we need to make sure that - * the local_password struct is initialized. - */ - use_yp(uname, 0, 0); -#endif #endif } exit(local_passwd(uname));