summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-11-12 19:07:51 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-11-12 19:07:51 +0800
commitc1f7d8129f3ba65ba046790569dd13e6ff3c68d1 (patch)
tree83032d4ee8d2cea54abecb75e25104c16ac0dd0c
parenta658eb04e03ce329437609574037f74f09e98542 (diff)
downloadpttbbs-c1f7d8129f3ba65ba046790569dd13e6ff3c68d1.tar
pttbbs-c1f7d8129f3ba65ba046790569dd13e6ff3c68d1.tar.gz
pttbbs-c1f7d8129f3ba65ba046790569dd13e6ff3c68d1.tar.bz2
pttbbs-c1f7d8129f3ba65ba046790569dd13e6ff3c68d1.tar.lz
pttbbs-c1f7d8129f3ba65ba046790569dd13e6ff3c68d1.tar.xz
pttbbs-c1f7d8129f3ba65ba046790569dd13e6ff3c68d1.tar.zst
pttbbs-c1f7d8129f3ba65ba046790569dd13e6ff3c68d1.zip
Fix symlink path
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5253 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/util/account.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pttbbs/util/account.c b/pttbbs/util/account.c
index a0a0bc2a..ae81d7a3 100644
--- a/pttbbs/util/account.c
+++ b/pttbbs/util/account.c
@@ -56,9 +56,12 @@ keeplog(const char *fpath, const char *board, const char *title, const char *sym
Rename(fpath, genbuf);
if (sym) {
+ char genbuf2[PATHLEN];
+ strcpy(genbuf2, "../");
+ strlcat(genbuf2, genbuf, sizeof(genbuf2));
sprintf(buf, "log/%s", sym);
unlink(buf);
- symlink(genbuf, buf);
+ symlink(genbuf2, buf);
}
/*
* printf("keep record:[%s][%s][%s][%s]\n",fpath, board, title,genbuf);