summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-11-18 23:56:03 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-11-18 23:56:03 +0800
commitff6f5bec17837748a52ad687cd8a6d3309459832 (patch)
tree467c56fdd3ff993eb1b0661d6268d1db182e3f25 /mbbsd
parent4cd1c87a51641132f08523c55d09aa3dcca2528f (diff)
downloadpttbbs-ff6f5bec17837748a52ad687cd8a6d3309459832.tar
pttbbs-ff6f5bec17837748a52ad687cd8a6d3309459832.tar.gz
pttbbs-ff6f5bec17837748a52ad687cd8a6d3309459832.tar.bz2
pttbbs-ff6f5bec17837748a52ad687cd8a6d3309459832.tar.lz
pttbbs-ff6f5bec17837748a52ad687cd8a6d3309459832.tar.xz
pttbbs-ff6f5bec17837748a52ad687cd8a6d3309459832.tar.zst
pttbbs-ff6f5bec17837748a52ad687cd8a6d3309459832.zip
missing O_TRUCT & O_CREAT
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1351 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 326bc427..55ea7024 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);
+ fo=open(dst, O_WRONLY | O_TRUCT | O_CREAT);
if(fo<0) {close(fi); return -1;}
while((bytes=read(fi, buf, 8192))>0)
write(fo, buf, bytes);