summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-22 15:35:44 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-22 15:35:44 +0800
commitd92fafb2f217d38f2778ba2889e23c7128161b2c (patch)
tree9da5340af0b9e7d013fa334a437ef6b387bed519 /mbbsd
parentc82aa04dd617725a9487ba97563a2b1cba7da26e (diff)
downloadpttbbs-d92fafb2f217d38f2778ba2889e23c7128161b2c.tar
pttbbs-d92fafb2f217d38f2778ba2889e23c7128161b2c.tar.gz
pttbbs-d92fafb2f217d38f2778ba2889e23c7128161b2c.tar.bz2
pttbbs-d92fafb2f217d38f2778ba2889e23c7128161b2c.tar.lz
pttbbs-d92fafb2f217d38f2778ba2889e23c7128161b2c.tar.xz
pttbbs-d92fafb2f217d38f2778ba2889e23c7128161b2c.tar.zst
pttbbs-d92fafb2f217d38f2778ba2889e23c7128161b2c.zip
fix Link error
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@334 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c6
-rw-r--r--mbbsd/kaede.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 4a09f955..bc6f5c29 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1,4 +1,4 @@
-/* $Id: bbs.c,v 1.55 2002/06/22 07:23:22 ptt Exp $ */
+/* $Id: bbs.c,v 1.56 2002/06/22 07:35:44 ptt Exp $ */
#include "bbs.h"
static void mail_by_link(char* owner, char* title, char* path) {
@@ -986,8 +986,8 @@ static int hold_gamble(int ent, fileheader_t *fhdr, char *direct) {
}
else if(dashf(genbuf))
{
- move(20,20);
- prints(" 目前本版系統正在處理開獎事宜, 請稍後再舉辦 ");
+ move(b_lines-1,0);
+ prints(" 目前系統正在處理開獎事宜, 請結果出爐後再舉辦.......");
pressanykey();
return FULLUPDATE;
}
diff --git a/mbbsd/kaede.c b/mbbsd/kaede.c
index a3005ad3..2f3d6a39 100644
--- a/mbbsd/kaede.c
+++ b/mbbsd/kaede.c
@@ -1,4 +1,4 @@
-/* $Id: kaede.c,v 1.4 2002/06/06 21:34:11 in2 Exp $ */
+/* $Id: kaede.c,v 1.5 2002/06/22 07:35:44 ptt Exp $ */
#include "bbs.h"
char *Ptt_prints(char *str, int mode) {
@@ -65,7 +65,7 @@ int Link(char* src, char* dst) {
if(strcmp(src, BBSHOME "/home") == 0)
return 1;
- if(link(src, dst) == 0)
+ if(symlink(dst, src) == 0)
return 0;
sprintf(cmd, "/bin/cp -R %s %s", src, dst);