From 22d3a79175892433a901be3a98c8edc75f625a2e Mon Sep 17 00:00:00 2001
From: kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>
Date: Sat, 30 Oct 2004 19:45:22 +0000
Subject: always respect to BBSHOME

git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2290 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
---
 innbbsd/inndchannel.c | 2 +-
 mbbsd/page.c          | 2 +-
 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, "�����ɨ�j�M���G", 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 "
 	    "�W�L�@�Ӥ�L�s�i�H�~�������峹�o���C"
-	    " *.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);   
     }
-- 
cgit v1.2.3