summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-11-16 05:27:41 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-11-16 05:27:41 +0800
commit75d0bfb1224e390df71a2bc76df7c9654f51b26c (patch)
treec6058f9cc00760a476c8287dbc64d46d9423cb8b /mbbsd/mbbsd.c
parente0a5fdf358d0b5af09649f66f50bd1b02616dfcb (diff)
downloadpttbbs-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
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c2
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);
}