diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-07-15 13:01:05 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-07-15 13:01:05 +0800 |
commit | 96c9259664f922210799f8af15c924984744a729 (patch) | |
tree | af770fdae4fef11e0d03e9d397f9806bb8dff877 | |
parent | 98e3f3895ecef4e4d97352fb07a2c18388b636a2 (diff) | |
download | pttbbs-96c9259664f922210799f8af15c924984744a729.tar pttbbs-96c9259664f922210799f8af15c924984744a729.tar.gz pttbbs-96c9259664f922210799f8af15c924984744a729.tar.bz2 pttbbs-96c9259664f922210799f8af15c924984744a729.tar.lz pttbbs-96c9259664f922210799f8af15c924984744a729.tar.xz pttbbs-96c9259664f922210799f8af15c924984744a729.tar.zst pttbbs-96c9259664f922210799f8af15c924984744a729.zip |
fix bug
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2138 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | util/account.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/util/account.c b/util/account.c index 850f907c..1c9ce127 100644 --- a/util/account.c +++ b/util/account.c @@ -38,16 +38,15 @@ keeplog(char *fpath, char *board, char *title, char *sym) if (!board) board = "Record"; - sprintf(genbuf, "boards/%c/%s", board[0], board); + sprintf(genbuf, BBSHOME "/boards/%c/%s", board[0], board); stampfile(genbuf, &fhdr); sprintf(buf, "mv %s %s", fpath, genbuf); - system(buf); + system(buf); if( sym ){ - sprintf(genbuf, BBSHOME "/boards/%c/%s", board[0], board); - sprintf(buf, "log/%s", sym); - unlink(buf); - symlink(genbuf, buf); + sprintf(buf, "log/%s", sym); + unlink(buf); + symlink(genbuf, buf); } /* * printf("keep record:[%s][%s][%s][%s]\n",fpath, board, title,genbuf); |