summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-12-03 00:00:37 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-12-03 00:00:37 +0800
commit4cd9486e5f41bb6fd901f0f3dac030e7f68e4e20 (patch)
tree99192fc88433252c3828edd5cf0d2b9495372648 /mbbsd
parenta3d91e5925766fd6e0a76ff8bbf2c3edded012c0 (diff)
downloadpttbbs-4cd9486e5f41bb6fd901f0f3dac030e7f68e4e20.tar
pttbbs-4cd9486e5f41bb6fd901f0f3dac030e7f68e4e20.tar.gz
pttbbs-4cd9486e5f41bb6fd901f0f3dac030e7f68e4e20.tar.bz2
pttbbs-4cd9486e5f41bb6fd901f0f3dac030e7f68e4e20.tar.lz
pttbbs-4cd9486e5f41bb6fd901f0f3dac030e7f68e4e20.tar.xz
pttbbs-4cd9486e5f41bb6fd901f0f3dac030e7f68e4e20.tar.zst
pttbbs-4cd9486e5f41bb6fd901f0f3dac030e7f68e4e20.zip
init file mode for Copy()
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1391 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-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);