summaryrefslogtreecommitdiffstats
path: root/util/post.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/post.c')
-rw-r--r--util/post.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/util/post.c b/util/post.c
index 0d93e0a0..ba6ee1d7 100644
--- a/util/post.c
+++ b/util/post.c
@@ -1,4 +1,4 @@
-/* $Id: post.c,v 1.4 2002/06/06 21:34:14 in2 Exp $ */
+/* $Id: post.c,v 1.5 2003/07/20 00:55:34 in2 Exp $ */
#include "bbs.h"
void keeplog(FILE *fin, char *fpath, char *board, char *title, char *owner) {
@@ -27,14 +27,17 @@ void keeplog(FILE *fin, char *fpath, char *board, char *title, char *owner) {
strcpy(fhdr.owner, owner);
sprintf(genbuf, BBSHOME "/boards/%c/%s/.DIR", board[0], board);
append_record(genbuf, &fhdr, sizeof(fhdr));
+ /* XXX: bid of cache.c's getbnum starts from 1 */
if((bid = getbnum(board)) > 0)
touchbtotal(bid);
}
-int main(int argc, char **argv) {
+int main(int argc, char **argv)
+{
FILE *fp;
-
+
+ attach_SHM();
resolve_boards();
if(argc != 5) {
printf("usage: %s <board name> <title> <owner> <file>\n", argv[0]);