summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-09-16 08:58:49 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-09-16 08:58:49 -0700
commit73dd9d3b74ecee4d7da1368265c780d5464910e4 (patch)
tree428d8905836f18e97a87e86d6cee80d5e34f1617
parent8d2e20ede621a3fa5295725f33459a95251c9644 (diff)
downloadinfinitytier-73dd9d3b74ecee4d7da1368265c780d5464910e4.tar.gz
infinitytier-73dd9d3b74ecee4d7da1368265c780d5464910e4.zip
Make sure open() has third argument
-rw-r--r--node/Utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Utils.cpp b/node/Utils.cpp
index ba7fb057..80406c3f 100644
--- a/node/Utils.cpp
+++ b/node/Utils.cpp
@@ -58,11 +58,11 @@ const char Utils::HEXCHARS[16] = { '0','1','2','3','4','5','6','7','8','9','a','
bool Utils::redirectUnixOutputs(const char *stdoutPath,const char *stderrPath)
throw()
{
- int fdout = ::open(stdoutPath,O_WRONLY|O_CREAT);
+ int fdout = ::open(stdoutPath,O_WRONLY|O_CREAT,0600);
if (fdout > 0) {
int fderr;
if (stderrPath) {
- fderr = ::open(stderrPath,O_WRONLY|O_CREAT);
+ fderr = ::open(stderrPath,O_WRONLY|O_CREAT,0600);
if (fderr <= 0) {
::close(fdout);
return false;