diff options
author | Bill Paul <wpaul@FreeBSD.org> | 1996-09-05 15:53:42 +0000 |
---|---|---|
committer | Bill Paul <wpaul@FreeBSD.org> | 1996-09-05 15:53:42 +0000 |
commit | ff92a7a182bc624581be80ab10854555148fe4b0 (patch) | |
tree | 8dc317e20f36de45388d220be928069da40ca565 /usr.sbin/rpc.yppasswdd/yppasswdd_server.c | |
parent | 78cf917e3d943298d7b30497ef0374d44ccb3380 (diff) | |
download | src-ff92a7a182bc624581be80ab10854555148fe4b0.tar.gz src-ff92a7a182bc624581be80ab10854555148fe4b0.zip |
When updating a password via the standard RPC handler, reset the password
change time (pw_change) to zero.
Notes
Notes:
svn path=/head/; revision=18047
Diffstat (limited to 'usr.sbin/rpc.yppasswdd/yppasswdd_server.c')
-rw-r--r-- | usr.sbin/rpc.yppasswdd/yppasswdd_server.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/rpc.yppasswdd/yppasswdd_server.c b/usr.sbin/rpc.yppasswdd/yppasswdd_server.c index 55a61dc24a36..d82890bcf934 100644 --- a/usr.sbin/rpc.yppasswdd/yppasswdd_server.c +++ b/usr.sbin/rpc.yppasswdd/yppasswdd_server.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: yppasswdd_server.c,v 1.6 1996/07/01 19:38:38 guido Exp $ + * $Id: yppasswdd_server.c,v 1.7 1996/08/04 22:13:05 wpaul Exp $ */ #include <stdio.h> @@ -61,7 +61,7 @@ struct dom_binding {}; #include "yppasswd_comm.h" #ifndef lint -static const char rcsid[] = "$Id: yppasswdd_server.c,v 1.6 1996/07/01 19:38:38 guido Exp $"; +static const char rcsid[] = "$Id: yppasswdd_server.c,v 1.7 1996/08/04 22:13:05 wpaul Exp $"; #endif /* not lint */ char *tempname; @@ -560,6 +560,7 @@ yppasswdproc_update_1_svc(yppasswd *argp, struct svc_req *rqstp) if (strcmp(argp->newpw.pw_passwd, yp_password.pw_passwd)) { yp_password.pw_passwd = argp->newpw.pw_passwd; + yp_password.pw_change = 0; passwd_changed++; } |