summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-11-02 19:15:27 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-11-02 19:15:27 +0800
commitc469cbc91d6fb5edc887a3bb3462a24e07daa5dd (patch)
treef5f918fd1db034bc8f333be2a9941a5348ea05fe
parentfda321941af663cd65191c20db9637cec1cf8e3d (diff)
downloadpttbbs-c469cbc91d6fb5edc887a3bb3462a24e07daa5dd.tar
pttbbs-c469cbc91d6fb5edc887a3bb3462a24e07daa5dd.tar.gz
pttbbs-c469cbc91d6fb5edc887a3bb3462a24e07daa5dd.tar.bz2
pttbbs-c469cbc91d6fb5edc887a3bb3462a24e07daa5dd.tar.lz
pttbbs-c469cbc91d6fb5edc887a3bb3462a24e07daa5dd.tar.xz
pttbbs-c469cbc91d6fb5edc887a3bb3462a24e07daa5dd.tar.zst
pttbbs-c469cbc91d6fb5edc887a3bb3462a24e07daa5dd.zip
fix bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@552 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/util/bbsmail.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pttbbs/util/bbsmail.c b/pttbbs/util/bbsmail.c
index 7c671418..0663a5c8 100644
--- a/pttbbs/util/bbsmail.c
+++ b/pttbbs/util/bbsmail.c
@@ -1,6 +1,6 @@
-/* $Id: bbsmail.c,v 1.5 2002/11/02 11:02:32 in2 Exp $ */
+/* $Id: bbsmail.c,v 1.6 2002/11/02 11:15:27 in2 Exp $ */
-#define _BBS_UTIL_C_
+#define _UTIL_C_
#include "bbs.h"
#define LOG_FILE (BBSHOME "/etc/mailog")
@@ -239,6 +239,8 @@ main(int argc, char* argv[])
{
char receiver[512];
+ if( passwd_mmap() )
+ return 0;
chdir(BBSHOME);
/* argv[1] is userid in bbs */