summaryrefslogtreecommitdiffstats
path: root/innbbsd/bbslib.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/bbslib.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/bbslib.c')
-rw-r--r--innbbsd/bbslib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/innbbsd/bbslib.c b/innbbsd/bbslib.c
index d3116317..3ec5cf6d 100644
--- a/innbbsd/bbslib.c
+++ b/innbbsd/bbslib.c
@@ -243,7 +243,7 @@ initial_bbs(char *outgoing)
}
while (fscanf(FN, "%s", MYBBSID) != EOF);
fclose(FN);
- if (!isdir(fileglue("%s/out.going", BBSHOME))) {
+ if (!dashd(fileglue("%s/out.going", BBSHOME))) {
mkdir((char *)fileglue("%s/out.going", BBSHOME), 0750);
}
if (NONENEWSFEEDS == 0)
@@ -617,7 +617,7 @@ myrealloc(void *optr, int size)
void
testandmkdir(char *dir)
{
- if (!isdir(dir)) {
+ if (!dashd(dir)) {
char path[MAXPATHLEN + 12];
sprintf(path, "mkdir -p %s", dir);
system(path);