summaryrefslogtreecommitdiffstats
path: root/mbbsd/passwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/passwd.c')
-rw-r--r--mbbsd/passwd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c
index d0dd4015..7145fb1a 100644
--- a/mbbsd/passwd.c
+++ b/mbbsd/passwd.c
@@ -102,6 +102,15 @@ passwd_update(int num, userec_t * buf)
memcpy(cuser.email, u.email, sizeof(u.email));
}
currutmp->alerts &= ~ALERT_PWD;
+
+ /*
+ // ALERT_PWD_RELOAD: reload all! No need to write.
+ if (pwdfd & ALERT_PWD_RELOAD)
+ {
+ memcpy(&cuser, &u, sizeof(u));
+ return 0;
+ }
+ */
}
if ((pwdfd = open(fn_passwd, O_WRONLY)) < 0)
exit(1);