summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1996-09-05 15:57:41 +0000
committerwpaul <wpaul@FreeBSD.org>1996-09-05 15:57:41 +0000
commit38fd8fd26ef8cf2f925107c1267dd58f6e623be9 (patch)
treed80019a052e67e0a705bc6c6a7f1a9a3c9c40370 /usr.bin
parentb861646aff4f6799a3d0314e04bb833120569397 (diff)
downloadFreeBSD-src-38fd8fd26ef8cf2f925107c1267dd58f6e623be9.zip
FreeBSD-src-38fd8fd26ef8cf2f925107c1267dd58f6e623be9.tar.gz
Reset password change time to zero. (This has no effect with standard
RPC calls to rpc.yppasswdd, but when using the special superuser-only AF_UNIX socket access method, the server will properly handle all the additional fields, including pw_change.) I would also like to take this opportunity to say that Sprint sucks.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/passwd/yp_passwd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/passwd/yp_passwd.c b/usr.bin/passwd/yp_passwd.c
index b83e9f1..d5c05ff 100644
--- a/usr.bin/passwd/yp_passwd.c
+++ b/usr.bin/passwd/yp_passwd.c
@@ -87,6 +87,8 @@ for other users");
return(1);
}
+ pw->pw_change = 0;
+
/* Initialize password information */
if (suser_override) {
master_yppasswd.newpw.pw_passwd = strdup(pw->pw_passwd);
OpenPOWER on IntegriCloud