summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-02 18:51:00 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-02 18:51:00 +0800
commit42f081391318e8b6ea59dc1101465d54de4d64dd (patch)
treea5126b1a03b63776b962e71eac4af671e18dac5a /mbbsd
parent9fad479e6d08de5f05737ad46d1a7e98597f7188 (diff)
downloadpttbbs-42f081391318e8b6ea59dc1101465d54de4d64dd.tar
pttbbs-42f081391318e8b6ea59dc1101465d54de4d64dd.tar.gz
pttbbs-42f081391318e8b6ea59dc1101465d54de4d64dd.tar.bz2
pttbbs-42f081391318e8b6ea59dc1101465d54de4d64dd.tar.lz
pttbbs-42f081391318e8b6ea59dc1101465d54de4d64dd.tar.xz
pttbbs-42f081391318e8b6ea59dc1101465d54de4d64dd.tar.zst
pttbbs-42f081391318e8b6ea59dc1101465d54de4d64dd.zip
- modify login: empty input is counted into attempts
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3613 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/mbbsd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 31cf0bc7..3e1fbef0 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -689,15 +689,18 @@ login_query(void)
exit(1);
}
bzero(&cuser, sizeof(cuser));
+
#ifdef DEBUG
move(19, 0);
prints("current pid: %d ", getpid());
#endif
- while (getdata(20, 0, "請輸入代號,或以[guest]參觀,以[new]註冊:",
+
+ if (getdata(20, 0, "請輸入代號,或以[guest]參觀,以[new]註冊:",
uid, sizeof(uid), DOECHO) < 1)
{
// got nothing
outs("請重新輸入。\n");
+ continue;
}
#ifdef CONVERT