diff options
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("抱歉,使用者帳號已經滿了,無法註冊新的帳號"); |