diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-03 22:12:27 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-03 22:12:27 +0800 |
commit | 3874e732f9f9b9a85df1a044137c9a083e3fc722 (patch) | |
tree | e7a7a393a600ae02bbbecf3719458e466af9fa14 /mbbsd/passwd.c | |
parent | a4f496f0c13fb087296e9091f005d29af22a90ec (diff) | |
download | pttbbs-3874e732f9f9b9a85df1a044137c9a083e3fc722.tar pttbbs-3874e732f9f9b9a85df1a044137c9a083e3fc722.tar.gz pttbbs-3874e732f9f9b9a85df1a044137c9a083e3fc722.tar.bz2 pttbbs-3874e732f9f9b9a85df1a044137c9a083e3fc722.tar.lz pttbbs-3874e732f9f9b9a85df1a044137c9a083e3fc722.tar.xz pttbbs-3874e732f9f9b9a85df1a044137c9a083e3fc722.tar.zst pttbbs-3874e732f9f9b9a85df1a044137c9a083e3fc722.zip |
register: compact ID_RECORD title format
register: use "system" in regform reject mail instead of reviewer name
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4074 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/passwd.c')
-rw-r--r-- | mbbsd/passwd.c | 9 |
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); |