diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-05 01:02:58 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-05 01:02:58 +0800 |
commit | 80d94701e0553a5b35fba7f717eb85037870868d (patch) | |
tree | 2d9135a1e787db6714b89fd8248849405d4f55c9 /mbbsd | |
parent | 1468dc39fd67c39076b38bf4b9736394e416b6b3 (diff) | |
download | pttbbs-80d94701e0553a5b35fba7f717eb85037870868d.tar pttbbs-80d94701e0553a5b35fba7f717eb85037870868d.tar.gz pttbbs-80d94701e0553a5b35fba7f717eb85037870868d.tar.bz2 pttbbs-80d94701e0553a5b35fba7f717eb85037870868d.tar.lz pttbbs-80d94701e0553a5b35fba7f717eb85037870868d.tar.xz pttbbs-80d94701e0553a5b35fba7f717eb85037870868d.tar.zst pttbbs-80d94701e0553a5b35fba7f717eb85037870868d.zip |
- announce: fix append size error (was using target size)
- mail: add more fast reject
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4080 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/announce.c | 3 | ||||
-rw-r--r-- | mbbsd/mail.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c index 8b947995..65a02ed2 100644 --- a/mbbsd/announce.c +++ b/mbbsd/announce.c @@ -601,6 +601,7 @@ a_appenditem(const menu_t * pm, int isask) return; } + // fname = destination sz = dashs(fname); if (sz >= MAX_FILE_SIZE) { @@ -621,6 +622,8 @@ a_appenditem(const menu_t * pm, int isask) fclose(fp); return; } + // cq->copyfile = input + sz = dashs(cq->copyfile); memset(buf, '-', 74); buf[74] = '\0'; diff --git a/mbbsd/mail.c b/mbbsd/mail.c index f9e116ca..9d1c61da 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -1271,7 +1271,8 @@ mail_reply(int ent, fileheader_t * fhdr, const char *direct) if (!fhdr || !fhdr->filename[0]) return DONOTHING; - if (fhdr->owner[0] == '[' || (fhdr->filemode & FILE_ANONYMOUS)) + if (fhdr->owner[0] == '[' fhdr->owner[0] == '-' + || (fhdr->filemode & FILE_ANONYMOUS)) { // system mail. reject. vmsg("µLªk¦^«H¡C"); |