summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/bbsmail.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/bbsmail.c b/util/bbsmail.c
index 8e326ad7..7ef9435d 100644
--- a/util/bbsmail.c
+++ b/util/bbsmail.c
@@ -1,4 +1,4 @@
-/* $Id: bbsmail.c,v 1.7 2003/04/10 10:26:08 in2 Exp $ */
+/* $Id: bbsmail.c,v 1.8 2003/07/21 07:11:50 in2 Exp $ */
#define _UTIL_C_
#include "bbs.h"
@@ -243,18 +243,18 @@ main(int argc, char* argv[])
{
char receiver[512];
- if( passwd_mmap() )
- return 0;
- chdir(BBSHOME);
/* argv[1] is userid in bbs */
- if (argc < 2)
- {
+ if (argc < 2){
printf("Usage:\t%s <bbs_uid>\n", argv[0]);
exit(-1);
}
(void) setgid(BBSGID);
(void) setuid(BBSUID);
+ attach_SHM();
+ if( passwd_mmap() )
+ return 0;
+ chdir(BBSHOME);
strlcpy(receiver, argv[1], sizeof(receiver));