Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Oct 2002 16:50:03 -0700 (PDT)
From:      Dan Pelleg <daniel+gnats@pelleg.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/43582: [PATCH] passwd(1) fails on nonexistent users
Message-ID:  <200210192350.g9JNo3Pd086406@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/43582; it has been noted by GNATS.

From: Dan Pelleg <daniel+gnats@pelleg.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: bin/43582: [PATCH] passwd(1) fails on nonexistent users
Date: Sat, 19 Oct 2002 19:43:28 -0400

 --CUexkwujC7
 Content-Type: text/plain; charset=us-ascii
 Content-Description: message body text
 Content-Transfer-Encoding: 7bit
 
 
 Ok, I figured it out.
 IF you set (just) the -u flag,
 AND have YP and KERBEROS
 AND the user is not in Kerberos,
 then the fallback to local_passwd(uname) is reached
 without use_yp having been called first. This will cause
 local_passwd() to fail.
 
 A patch follows.
 
 
 
 --CUexkwujC7
 Content-Type: application/octet-stream
 Content-Disposition: attachment;
 	filename="passwd.patch"
 Content-Transfer-Encoding: base64
 
 LS0tIHVzci5iaW4vcGFzc3dkL3Bhc3N3ZC5jCVNhdCBPY3QgMTkgMTk6NDI6NDUgMjAwMgor
 KysgdXNyLmJpbi9wYXNzd2QvcGFzc3dkLmMub3JpZwlTYXQgT2N0IDE5IDE5OjAyOjQ5IDIw
 MDIKQEAgLTIyMCwxMyArMjIwLDYgQEAKIAkJCWZwcmludGYoc3RkZXJyLCAicmVhbG0gJXNc
 biIsIHJlYWxtKTsKIAkJCWV4aXQoa3JiX3Bhc3N3ZChhcmd2WzBdLCBpZmxhZywgcmZsYWcs
 IHVmbGFnKSk7CiAJCX0KLSNpZmRlZiBZUAotCQkvKgotCQkgKiBBcyB3ZSBmYWxsIGJhY2sg
 dG8gbG9jYWxfcGFzc3dkLCB3ZSBuZWVkIHRvIG1ha2Ugc3VyZSB0aGF0Ci0JCSAqIHRoZSBs
 b2NhbF9wYXNzd29yZCBzdHJ1Y3QgaXMgaW5pdGlhbGl6ZWQuCi0JCSAqLwotCQl1c2VfeXAo
 dW5hbWUsIDAsIDApOwotI2VuZGlmCiAjZW5kaWYKIAl9CiAJZXhpdChsb2NhbF9wYXNzd2Qo
 dW5hbWUpKTsK
 
 --CUexkwujC7--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210192350.g9JNo3Pd086406>