summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
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;
}