From 2e9af237bf876af34b8b53f43d27b5e850f74fa6 Mon Sep 17 00:00:00 2001 From: kcwu Date: Fri, 1 Sep 2006 00:41:55 +0000 Subject: since only passwd_lock() when register, no need to call passwd_init() every login git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3409 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 4 ---- mbbsd/register.c | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 6d83b645..d5779b80 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1294,10 +1294,6 @@ start_client(void) dup2(0, 1); - /* initialize passwd semaphores */ - if (passwd_init()) - exit(1); - do_term_init(); Signal(SIGALRM, abort_bbs); alarm(600); diff --git a/mbbsd/register.c b/mbbsd/register.c index f46fe6ad..a9b5e911 100644 --- a/mbbsd/register.c +++ b/mbbsd/register.c @@ -155,6 +155,10 @@ setupnewuser(const userec_t *user) } } + /* initialize passwd semaphores */ + if (passwd_init()) + exit(1); + passwd_lock(); uid = dosearchuser("", NULL); -- cgit v1.2.3