diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-11-16 05:27:41 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-11-16 05:27:41 +0800 |
commit | 75d0bfb1224e390df71a2bc76df7c9654f51b26c (patch) | |
tree | c6058f9cc00760a476c8287dbc64d46d9423cb8b | |
parent | e0a5fdf358d0b5af09649f66f50bd1b02616dfcb (diff) | |
download | pttbbs-75d0bfb1224e390df71a2bc76df7c9654f51b26c.tar pttbbs-75d0bfb1224e390df71a2bc76df7c9654f51b26c.tar.gz pttbbs-75d0bfb1224e390df71a2bc76df7c9654f51b26c.tar.bz2 pttbbs-75d0bfb1224e390df71a2bc76df7c9654f51b26c.tar.lz pttbbs-75d0bfb1224e390df71a2bc76df7c9654f51b26c.tar.xz pttbbs-75d0bfb1224e390df71a2bc76df7c9654f51b26c.tar.zst pttbbs-75d0bfb1224e390df71a2bc76df7c9654f51b26c.zip |
debug:
purge utmp only after passwd_update();
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3243 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/mbbsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 9cd20572..c31d4d12 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -179,13 +179,13 @@ u_exit(const char *mode) !currutmp->invisible) do_aloha("<<下站通知>> -- 我走囉!"); - purge_utmp(currutmp); if ((cuser.uflag != enter_uflag) || dirty || diff) { if (!diff && cuser.numlogins) cuser.numlogins = --cuser.numlogins; /* Leeym 上站停留時間限制式 */ } passwd_update(usernum, &cuser); + purge_utmp(currutmp); log_usies(mode, NULL); } |