summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-25 19:17:55 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-25 19:17:55 +0800
commit3bf522b143e8bd77046531e4636e3a0b4c510188 (patch)
tree66f27014776adc79555ee38f4a8de80e18b07811 /util
parentc5cd856ffb6076093e0eaf8186c6f4905a105989 (diff)
downloadpttbbs-3bf522b143e8bd77046531e4636e3a0b4c510188.tar
pttbbs-3bf522b143e8bd77046531e4636e3a0b4c510188.tar.gz
pttbbs-3bf522b143e8bd77046531e4636e3a0b4c510188.tar.bz2
pttbbs-3bf522b143e8bd77046531e4636e3a0b4c510188.tar.lz
pttbbs-3bf522b143e8bd77046531e4636e3a0b4c510188.tar.xz
pttbbs-3bf522b143e8bd77046531e4636e3a0b4c510188.tar.zst
pttbbs-3bf522b143e8bd77046531e4636e3a0b4c510188.zip
remode savemode
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@219 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r--util/BM_money.c3
-rw-r--r--util/birth.c1
-rw-r--r--util/buildAnnounce.c1
-rw-r--r--util/deluserfile.c5
-rw-r--r--util/initbbs.c3
-rw-r--r--util/jungo.c1
-rw-r--r--util/openticket.c3
-rw-r--r--util/parse_news.c3
-rw-r--r--util/smtest.c1
-rw-r--r--util/toplazyBBM.c1
-rw-r--r--util/toplazyBM.c1
11 files changed, 6 insertions, 17 deletions
diff --git a/util/BM_money.c b/util/BM_money.c
index c275b1eb..a20dc5e3 100644
--- a/util/BM_money.c
+++ b/util/BM_money.c
@@ -1,4 +1,4 @@
-/* $Id: BM_money.c,v 1.2 2002/03/09 17:44:30 in2 Exp $ */
+/* $Id: BM_money.c,v 1.3 2002/05/25 11:17:55 ptt Exp $ */
/* 給版主錢的程式 */
@@ -104,7 +104,6 @@ int main() {
strcpy(mymail.owner, "[薪水袋]");
sprintf(mymail.title,
"\033[32m %s \033[m版的薪水 $\033[33m%d\033![m", bptr->brdname, FUNCTION / nBM);
- mymail.savemode = 0;
unlink(genbuf);
Link(BBSHOME "/etc/BM_money", genbuf);
sprintf(genbuf, BBSHOME "/home/%c/%s/.DIR", ch[0], ch);
diff --git a/util/birth.c b/util/birth.c
index 43840386..89033830 100644
--- a/util/birth.c
+++ b/util/birth.c
@@ -79,7 +79,6 @@ int main(argc, argv)
stampfile(genbuf, &mymail);
strcpy(mymail.owner, BBSNAME);
strcpy(mymail.title, "!! 生日快樂 !!");
- mymail.savemode = 0;
unlink(genbuf);
Link(BBSHOME "/etc/Welcome_birth", genbuf);
sprintf(genbuf, BBSHOME "/home/%c/%s/.DIR", cuser.userid[0], cuser.userid);
diff --git a/util/buildAnnounce.c b/util/buildAnnounce.c
index 7de62615..cd4b9877 100644
--- a/util/buildAnnounce.c
+++ b/util/buildAnnounce.c
@@ -62,7 +62,6 @@ void buildchilds(int level,char *path,int gid)
strcpy(item.owner,ptr->BM);
strtok(item.owner,"/");
sprintf(item.title,"%-13.13s %-32.32s", level?ptr->brdname:"", ptr->title+7);
- item.savemode = 'D';
item.filemode = 0 ;
sprintf(item.filename,ptr->brdname);
sprintf(newpath,"%s/.DIR",path);
diff --git a/util/deluserfile.c b/util/deluserfile.c
index 63cfefba..3cf226bb 100644
--- a/util/deluserfile.c
+++ b/util/deluserfile.c
@@ -1,4 +1,4 @@
-/* $Id: deluserfile.c,v 1.1 2002/03/07 15:13:45 in2 Exp $ */
+/* $Id: deluserfile.c,v 1.2 2002/05/25 11:17:55 ptt Exp $ */
/* 自動砍user目錄檔案程式 */
#include <stdio.h>
@@ -61,8 +61,7 @@ void del_file(char *userid)
fileheader_t mymail;
stampfile(buf, &mymail);
- mymail.savemode = 'H'; /* hold-mail flag */
- mymail.filemode = FILE_READ;
+ mymail.filemode = FILE_READ|FILE_HOLD;
strcpy(mymail.owner, userid);
strcpy(mymail.title, "熱線記錄");
sprintf(buf1, BBSHOME "/home/%c/%s/writelog",
diff --git a/util/initbbs.c b/util/initbbs.c
index deab2c8b..f88daf92 100644
--- a/util/initbbs.c
+++ b/util/initbbs.c
@@ -1,4 +1,4 @@
-/* $Id: initbbs.c,v 1.3 2002/04/05 14:36:25 in2 Exp $ */
+/* $Id: initbbs.c,v 1.4 2002/05/25 11:17:55 ptt Exp $ */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -153,7 +153,6 @@ static void initMan() {
struct tm *tm = localtime(&t);
memset(&f, 0, sizeof(f));
- f.savemode = 0;
strcpy(f.owner, "SYSOP");
sprintf(f.date, "%2d/%02d", tm->tm_mon + 1, tm->tm_mday);
f.money = 0;
diff --git a/util/jungo.c b/util/jungo.c
index 8bc4b3a2..8a46f22a 100644
--- a/util/jungo.c
+++ b/util/jungo.c
@@ -187,7 +187,6 @@ int main(int argc, char *argv[])
sprintf(mymail.title,
"\033[32m [小組長免職通知] \033[m %s BM %s", lostbms[i].title, lostbms[i].bmname);
}
- mymail.savemode = 0 ;
unlink(genbuf);
if(lostdays <= 60){
LINK(OUTFILE, genbuf);
diff --git a/util/openticket.c b/util/openticket.c
index 8a5798b1..250d2238 100644
--- a/util/openticket.c
+++ b/util/openticket.c
@@ -1,4 +1,4 @@
-/* $Id: openticket.c,v 1.2 2002/03/09 17:44:30 in2 Exp $ */
+/* $Id: openticket.c,v 1.3 2002/05/25 11:17:55 ptt Exp $ */
/* 開獎的 utility */
#include <stdio.h>
#include <stdlib.h>
@@ -184,7 +184,6 @@ int main()
stampfile(genbuf, &mymail);
strcpy(mymail.owner, BBSNAME);
sprintf(mymail.title, "[%s] 中獎囉! $ %d", Cdatelite(&now), money * num);
- mymail.savemode = 0;
unlink(genbuf);
Link(BBSHOME "/etc/ticket", genbuf);
sprintf(genbuf, BBSHOME "/home/%c/%s/.DIR", userid[0], userid);
diff --git a/util/parse_news.c b/util/parse_news.c
index fc24a2d6..18fcd654 100644
--- a/util/parse_news.c
+++ b/util/parse_news.c
@@ -1,4 +1,4 @@
-/* $Id: parse_news.c,v 1.2 2002/03/09 17:29:20 in2 Exp $ */
+/* $Id: parse_news.c,v 1.3 2002/05/25 11:17:55 ptt Exp $ */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -53,7 +53,6 @@ int main() {
stampfile(buf, &news);
sprintf(news.title, "中央社即時新聞 %s", fh.date);
strcpy(news.owner, "CNA-News.");
- news.savemode = 0;
if (!(fp = fopen(buf, "w")))
return (0);
fprintf(fp, " ───────── 中央社即時新聞 (%s)──────────\n",
diff --git a/util/smtest.c b/util/smtest.c
index 7657762f..9059c419 100644
--- a/util/smtest.c
+++ b/util/smtest.c
@@ -100,7 +100,6 @@ void mailtouser(char *bmname, char *bname, int zf)
sprintf(mymail.title,"\033[32m [廢版通知] "
"\033[m %s版(BM:%s)",bname, bmname);
}
- mymail.savemode = 0 ;
unlink(genbuf);
if(zf == 0){
LINK(WARNFILE, genbuf);
diff --git a/util/toplazyBBM.c b/util/toplazyBBM.c
index 5b2f18f3..1341c17a 100644
--- a/util/toplazyBBM.c
+++ b/util/toplazyBBM.c
@@ -188,7 +188,6 @@ int main(int argc, char *argv[])
sprintf(mymail.title,
"\033[32m [小組長免職通知] \033[m %s BM %s", lostbms[i].title, lostbms[i].bmname);
}
- mymail.savemode = 0 ;
unlink(genbuf);
if(lostdays <= 30){
LINK(OUTFILE, genbuf);
diff --git a/util/toplazyBM.c b/util/toplazyBM.c
index e5e8637b..0aba0560 100644
--- a/util/toplazyBM.c
+++ b/util/toplazyBM.c
@@ -195,7 +195,6 @@ int main(int argc, char *argv[])
sprintf(mymail.title,
"\033[32m [版主免職通知] \033[m %s BM %s", lostbms[i].title, lostbms[i].bmname);
}
- mymail.savemode = 0 ;
unlink(genbuf);
if(lostdays <= 60){
LINK(OUTFILE, genbuf);