From 2fbf843d7971534044a548a200055bd4a8529159 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Mon, 20 May 2013 12:07:04 +0200 Subject: [PATCH] CFileHelpers::copyFile - prevent possible compile error Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/476b89697229e0b57f68c0ea263b8be933a689ae Author: Jacek Jendrzej 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 --- src/system/helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/helpers.cpp b/src/system/helpers.cpp index df41e86db..d1ea12352 100644 --- a/src/system/helpers.cpp +++ b/src/system/helpers.cpp @@ -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; }