summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-26 16:37:23 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-26 16:37:23 +0800
commitfab81442002b135af4727c037653c83fde3b81d6 (patch)
tree125eb5460e5569d5c3cc5545d128aced366065ad /mbbsd
parenta283b3f4cbdd9e240acc896086af28065af6d6da (diff)
downloadpttbbs-fab81442002b135af4727c037653c83fde3b81d6.tar
pttbbs-fab81442002b135af4727c037653c83fde3b81d6.tar.gz
pttbbs-fab81442002b135af4727c037653c83fde3b81d6.tar.bz2
pttbbs-fab81442002b135af4727c037653c83fde3b81d6.tar.lz
pttbbs-fab81442002b135af4727c037653c83fde3b81d6.tar.xz
pttbbs-fab81442002b135af4727c037653c83fde3b81d6.tar.zst
pttbbs-fab81442002b135af4727c037653c83fde3b81d6.zip
fix deleted board :
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@357 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/kaede.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mbbsd/kaede.c b/mbbsd/kaede.c
index 2f3d6a39..26d3ac54 100644
--- a/mbbsd/kaede.c
+++ b/mbbsd/kaede.c
@@ -1,4 +1,4 @@
-/* $Id: kaede.c,v 1.5 2002/06/22 07:35:44 ptt Exp $ */
+/* $Id: kaede.c,v 1.6 2002/06/26 08:37:23 ptt Exp $ */
#include "bbs.h"
char *Ptt_prints(char *str, int mode) {
@@ -55,8 +55,14 @@ char *Ptt_prints(char *str, int mode) {
}
int Rename(char* src, char* dst) {
+ char buf[256];
if(rename(src, dst) == 0)
return 0;
+ if(!strchr(src,";") && !strchr(dst,";")) // Ptt ¨¾¤£¥¿±`«ü¥O
+ {
+ sprintf(buf,"/bin/mv %s %s",src,dst);
+ system(buf);
+ }
return -1;
}