From 18bf93bafe8e2dd28fe0b9900110f33cbdc84cab Mon Sep 17 00:00:00 2001 From: wens Date: Sat, 9 Jul 2011 02:47:43 +0000 Subject: Also export comment numbers and filemode for article list git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5371 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/daemon/boardd/boardd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pttbbs/daemon/boardd/boardd.c b/pttbbs/daemon/boardd/boardd.c index 86be1e93..8bda7c82 100644 --- a/pttbbs/daemon/boardd/boardd.c +++ b/pttbbs/daemon/boardd/boardd.c @@ -56,8 +56,9 @@ article_list(struct evbuffer *buf, boardheader_t *bptr, int offset, int length) if (get_records_keep(path, &fhdr, sizeof(fhdr), ++offset, 1, &fd) <= 0) break; - evbuffer_add_printf(buf, "%d,%s,%s,%s,%s\n", - offset, fhdr.filename, fhdr.date, fhdr.owner, fhdr.title); + evbuffer_add_printf(buf, "%d,%s,%s,%d,%d,%s,%s\n", + offset, fhdr.filename, fhdr.date, fhdr.recommend, + fhdr.filemode, fhdr.owner, fhdr.title); } if (fd >= 0) -- cgit v1.2.3