From 2f6959aecaaaed4980f7c8740f2fae2c8fc326ca Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 12 Jun 2009 12:22:07 +0000 Subject: * refine cmbbs: move util_passwd.o to cmbbs/passwd.c. * note: in order to workaround the buggy/dirty synchronization hacks, changed 'passwd_query' and 'passwd_update' to passwd_sync_*. * util/* and daemon/* use directly passwd_query/update, and mbbsd should use passwd_sync_*. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4574 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/bbsmail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/bbsmail.c') diff --git a/util/bbsmail.c b/util/bbsmail.c index fa14b493..c2cc732d 100644 --- a/util/bbsmail.c +++ b/util/bbsmail.c @@ -52,7 +52,7 @@ int mail2bbs(char *userid) userec_t xuser; /* check if the userid is in our bbs now */ - if( !(uid = getuser(userid, &xuser)) ){ + if( (uid = passwd_load_user(userid, &xuser)) < 1 ){ sprintf(genbuf, "BBS user <%s> not existed", userid); puts(genbuf); mailog(genbuf); -- cgit v1.2.3