From owner-freebsd-bugs@FreeBSD.ORG Tue Jul 15 15:30:17 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0A6C37B401 for ; Tue, 15 Jul 2003 15:30:17 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4768443F75 for ; Tue, 15 Jul 2003 15:30:17 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h6FMUGUp011018 for ; Tue, 15 Jul 2003 15:30:16 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h6FMUGvS011017; Tue, 15 Jul 2003 15:30:16 -0700 (PDT) Date: Tue, 15 Jul 2003 15:30:16 -0700 (PDT) Message-Id: <200307152230.h6FMUGvS011017@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Dan Pelleg 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: Tue, 15 Jul 2003 22:30:18 -0000 The following reply was made to PR bin/43582; it has been noted by GNATS. From: Dan Pelleg To: Kris Kennaway , freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: bin/43582: passwd(1) fails on nonexistent users Date: Tue, 15 Jul 2003 18:25:22 -0400 [resend, seems the first one was lost] 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));