summaryrefslogtreecommitdiffstats
path: root/mbbsd/kaede.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/kaede.c')
-rw-r--r--mbbsd/kaede.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/kaede.c b/mbbsd/kaede.c
index 53723b3e..4f091b12 100644
--- a/mbbsd/kaede.c
+++ b/mbbsd/kaede.c
@@ -80,7 +80,7 @@ Copy(char *src, char *dst)
char buf[8192];
fi=open(src, O_RDONLY);
if(fi<0) return -1;
- fo=open(dst, O_WRONLY | O_TRUNC | O_CREAT);
+ fo=open(dst, O_WRONLY | O_TRUNC | O_CREAT, 0600);
if(fo<0) {close(fi); return -1;}
while((bytes=read(fi, buf, 8192))>0)
write(fo, buf, bytes);