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 /util/kenben.c | |
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
Diffstat (limited to 'util/kenben.c')
-rw-r--r-- | util/kenben.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |