From 1cad31359a182ffa1b3e5358c9addd85ba605874 Mon Sep 17 00:00:00 2001 From: mhsin Date: Sun, 5 Jul 2009 10:00:23 +0000 Subject: Fix file timestamping for vote report and innbbsd. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4724 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- innbbsd/receive_article.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'innbbsd/receive_article.c') diff --git a/innbbsd/receive_article.c b/innbbsd/receive_article.c index becdda61..f79096b6 100644 --- a/innbbsd/receive_article.c +++ b/innbbsd/receive_article.c @@ -295,6 +295,7 @@ receive_article() "OCAgIFNreXBlOmp1bnNreWVwCg==", "ooqq.bbs@bbs.wretch.cc", "http://jsvcd.3cc.cc", "http://bestgirl.mytw.net", "http://98.to/", "http://www.boss888.net", "amuro.bbs@bbs.csie.nctu.edu.tw", + "請問有需要幫忙報告.論文spss統計分析嗎", "http://www.whymsi.com", "http://www.msi-team.com/", NULL}; #endif @@ -739,7 +740,8 @@ post_article(homepath, userid, board, writebody, pathname, firstpath) now = time(NULL); while (1) { - sprintf(name, "M.%ld.A", (long)++now); + /* TODO: extract record.c:stampfile_u() to common lib */ + sprintf(name, "M.%ld.A.%3.3X", (long)++now, (unsigned int)(random() & 0xFFF)); sprintf(article, "%s/%s", homepath, name); fh = open(article, O_CREAT | O_EXCL | O_WRONLY, 0644); if (fh >= 0) -- cgit v1.2.3