From b9a76d7ed0f16390a7cfd4da7e3a21cc404c9c5b Mon Sep 17 00:00:00 2001 From: Daniel Thayer Date: Tue, 24 Jul 2012 17:21:30 -0500 Subject: [PATCH] Fix file permissions of log files A recent commit was erroneously causing new log files to be created with execute permissions. --- src/logging/writers/Ascii.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logging/writers/Ascii.cc b/src/logging/writers/Ascii.cc index 3866c48b64..4d2f59ea72 100644 --- a/src/logging/writers/Ascii.cc +++ b/src/logging/writers/Ascii.cc @@ -101,7 +101,7 @@ bool Ascii::DoInit(const WriterInfo& info, int num_fields, const Field* const * fname = IsSpecial(path) ? path : path + "." + LogExt(); - fd = open(fname.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0777); + fd = open(fname.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0666); if ( fd < 0 ) {