bin/43582: passwd(1) fails on nonexistent users

Dan Pelleg daniel at pelleg.org
Tue Jul 15 15:30:18 PDT 2003


The following reply was made to PR bin/43582; it has been noted by GNATS.

From: Dan Pelleg <daniel at pelleg.org>
To: Kris Kennaway <kris at FreeBSD.org>,
	freebsd-gnats-submit at 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));
 
 


More information about the freebsd-bugs mailing list