summaryrefslogtreecommitdiffstats
path: root/innbbsd/receive_article.c
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-01-30 14:17:12 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-01-30 14:17:12 +0800
commit4617eab09ea42b678c3d6d18c635a0dda3d6ed5a (patch)
tree6e8d0207d1cedf8032ccb94159e50695388eabe7 /innbbsd/receive_article.c
parentea44e808f2c7b77c8c92182aef1bd46e90baac23 (diff)
downloadpttbbs-4617eab09ea42b678c3d6d18c635a0dda3d6ed5a.tar
pttbbs-4617eab09ea42b678c3d6d18c635a0dda3d6ed5a.tar.gz
pttbbs-4617eab09ea42b678c3d6d18c635a0dda3d6ed5a.tar.bz2
pttbbs-4617eab09ea42b678c3d6d18c635a0dda3d6ed5a.tar.lz
pttbbs-4617eab09ea42b678c3d6d18c635a0dda3d6ed5a.tar.xz
pttbbs-4617eab09ea42b678c3d6d18c635a0dda3d6ed5a.tar.zst
pttbbs-4617eab09ea42b678c3d6d18c635a0dda3d6ed5a.zip
Use functions from common library.
Reorder extern.h git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4431 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd/receive_article.c')
-rw-r--r--innbbsd/receive_article.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/innbbsd/receive_article.c b/innbbsd/receive_article.c
index d0f02d7b..627db083 100644
--- a/innbbsd/receive_article.c
+++ b/innbbsd/receive_article.c
@@ -445,12 +445,12 @@ receive_article()
goto boardcont;
}
boardhome = (char *)fileglue("%s/boards/%c/%s", BBSHOME, boardptr[0], boardptr);
- if (!isdir(boardhome)) {
+ if (!dashd(boardhome)) {
bbslog(":Err: unable to write %s\n", boardhome);
} else {
char *fname;
/*
- * if ( !isdir( boardhome )) { bbslog( ":Err: unable to write
+ * if ( !dashd( boardhome )) { bbslog( ":Err: unable to write
* %s\n",boardhome); testandmkdir(boardhome); }
*/
fname = (char *)post_article(boardhome, userid, boardptr,
@@ -510,7 +510,7 @@ receive_control(void)
boardhome = (char *)fileglue("%s/boards/c/control", BBSHOME);
testandmkdir(boardhome);
*firstpath = '\0';
- if (isdir(boardhome)) {
+ if (dashd(boardhome)) {
fname = (char *)post_article(boardhome, FROM, "control", bbspost_write_control, NULL, firstpath);
if (fname != NULL) {
if (firstpath[0] == '\0')
@@ -573,7 +573,7 @@ cancel_article_front(msgid)
}
sprintf(filename, "%s/boards/%c/%s", BBSHOME, file[0], file);
bbslog("cancel post %s\n", filename);
- if (isfile(filename)) {
+ if (dashf(filename)) {
FILE *fp = fopen(filename, "r");
char buffer[1024];
char xfrom0[100], xfrom[100], xpath[1024];
@@ -608,7 +608,7 @@ cancel_article_front(msgid)
bbslog("cancel post %s\n", filename);
boardhome = (char *)fileglue("%s/boards/d/deleted", BBSHOME);
testandmkdir(boardhome);
- if (isdir(boardhome)) {
+ if (dashd(boardhome)) {
char subject[1024];
char *fname;
if (POSTHOST) {