CFileHelpers::copyFile - prevent possible compile error

Origin commit data
------------------
Branch: ni/coolstream
Commit: 476b896972
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-05-20 (Mon, 20 May 2013)

Origin message was:
------------------
CFileHelpers::copyFile - prevent possible compile error

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2013-05-20 12:07:04 +02:00
parent 4bbf0e81cd
commit 2fbf843d79

View File

@@ -317,7 +317,7 @@ bool CFileHelpers::copyFile(const char *Src, const char *Dst, mode_t mode)
unlink(Dst);
if ((fd1 = open(Src, O_RDONLY)) < 0)
return false;
if ((fd2 = open(Dst, O_WRONLY | O_CREAT)) < 0) {
if ((fd2 = open(Dst, O_WRONLY | O_CREAT, 0666)) < 0) {
close(fd1);
return false;
}