diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-10-31 03:45:22 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-10-31 03:45:22 +0800 |
commit | 22d3a79175892433a901be3a98c8edc75f625a2e (patch) | |
tree | 9d7493b6a7f5f06f307d6d6bd7e19f57b0a91f9c | |
parent | 9f3022c5b10164fa2d61afe02e5ad668b00f8121 (diff) | |
download | pttbbs-22d3a79175892433a901be3a98c8edc75f625a2e.tar pttbbs-22d3a79175892433a901be3a98c8edc75f625a2e.tar.gz pttbbs-22d3a79175892433a901be3a98c8edc75f625a2e.tar.bz2 pttbbs-22d3a79175892433a901be3a98c8edc75f625a2e.tar.lz pttbbs-22d3a79175892433a901be3a98c8edc75f625a2e.tar.xz pttbbs-22d3a79175892433a901be3a98c8edc75f625a2e.tar.zst pttbbs-22d3a79175892433a901be3a98c8edc75f625a2e.zip |
always respect to BBSHOME
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2290 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | innbbsd/inndchannel.c | 2 | ||||
-rw-r--r-- | mbbsd/page.c | 2 | ||||
-rw-r--r-- | util/kenben.c | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/innbbsd/inndchannel.c b/innbbsd/inndchannel.c index 0b1ff3aa..62638001 100644 --- a/innbbsd/inndchannel.c +++ b/innbbsd/inndchannel.c @@ -619,7 +619,7 @@ main(argc, argv) int rel; if ((rel = getsockname(0, (struct sockaddr *) & there, &len)) < 0) { fprintf(stdout, "You must run -i from inetd with inetd.conf line: \n"); - fprintf(stdout, "service-port stream tcp wait bbs /home/bbs/innbbsd innbbsd -i port\n"); + fprintf(stdout, "service-port stream tcp wait bbs " BBSHOME "/innd/innbbsd innbbsd -i port\n"); fflush(stdout); exit(5); } diff --git a/mbbsd/page.c b/mbbsd/page.c index 25d43eac..dff54689 100644 --- a/mbbsd/page.c +++ b/mbbsd/page.c @@ -142,7 +142,7 @@ main_railway() strncpy(mhdr.title, "火車時刻搜尋結果", TTLEN); snprintf(command, sizeof(command), "echo \"path=%d from-station=%s to-station=%s" - " from-time=%02d to-time=%02d tt=%s type=%s date=%d\" | /home/bbs/bin/railway_wrapper.pl > %s", + " from-time=%02d to-time=%02d tt=%s type=%s date=%d\" | "BBSHOME"/bin/railway_wrapper.pl > %s", path, addr[path - 1][from - 1], addr[path - 1][to - 1], time_go, time_reach, (tt[0] == '1') ? "start" : "arriv", (type[0] == '1') ? "fast" : "slow", date, genbuf); diff --git a/util/kenben.c b/util/kenben.c index e5d52385..67b1e9bd 100644 --- a/util/kenben.c +++ b/util/kenben.c @@ -13,9 +13,9 @@ void main() fgets(line,255,fin); line[12] = '\0'; - sprintf(genbuf, "cd ~/boards/%c/%s;grep " + sprintf(genbuf, "cd "BBSHOME"/boards/%c/%s;grep " "超過一個月無廣告以外的本站文章發表。" - " *.A > ~/pttbbs/util/kenken.txt", line[0], line); + " *.A > "BBSHOME"/pttbbs/util/kenken.txt", line[0], line); system(genbuf); fout = fopen("kenken.txt","r"); @@ -33,7 +33,7 @@ void main() break; } } - sprintf(genbuf, "cd ~/boards/%c/%s;rm %s", line[0], line, tok); + sprintf(genbuf, "cd "BBSHOME"/boards/%c/%s;rm %s", line[0], line, tok); // printf("%s \n", genbuf); system(genbuf); } |