diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-23 01:57:57 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-23 01:57:57 +0800 |
commit | b102f5f44888896e44c8af86ec4bf759e2565d85 (patch) | |
tree | 35de39bfdd67850e37ece7d90310696d9e29e118 /mbbsd/register.c | |
parent | fd20564209c77de3975e708a5646731d76e62d92 (diff) | |
download | pttbbs-b102f5f44888896e44c8af86ec4bf759e2565d85.tar pttbbs-b102f5f44888896e44c8af86ec4bf759e2565d85.tar.gz pttbbs-b102f5f44888896e44c8af86ec4bf759e2565d85.tar.bz2 pttbbs-b102f5f44888896e44c8af86ec4bf759e2565d85.tar.lz pttbbs-b102f5f44888896e44c8af86ec4bf759e2565d85.tar.xz pttbbs-b102f5f44888896e44c8af86ec4bf759e2565d85.tar.zst pttbbs-b102f5f44888896e44c8af86ec4bf759e2565d85.zip |
Warning, API semantic changes.
searchuser() rejects empty userid.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3294 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/register.c')
-rw-r--r-- | mbbsd/register.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c index ebfb3bf0..0bb22bda 100644 --- a/mbbsd/register.c +++ b/mbbsd/register.c @@ -143,7 +143,7 @@ setupnewuser(const userec_t *user) clock = now; /* Lazy method : 先找尋已經清除的過期帳號 */ - if ((uid = searchuser("", NULL)) == 0) { + if ((uid = dosearchuser("", NULL)) == 0) { /* 每 1 個小時,清理 user 帳號一次 */ if ((stat(fn_fresh, &st) == -1) || (st.st_mtime < clock - 3600)) { if ((fd = open(fn_fresh, O_RDWR | O_CREAT, 0600)) == -1) @@ -167,7 +167,7 @@ setupnewuser(const userec_t *user) passwd_lock(); - uid = searchuser("", NULL); + uid = dosearchuser("", NULL); if ((uid <= 0) || (uid > MAX_USERS)) { passwd_unlock(); vmsg("抱歉,使用者帳號已經滿了,無法註冊新的帳號"); |