Fix file permissions of log files

A recent commit was erroneously causing new log files to be created with
execute permissions.
This commit is contained in:
Daniel Thayer 2012-07-24 17:21:30 -05:00
parent 063fd204cc
commit b9a76d7ed0

View file

@ -101,7 +101,7 @@ bool Ascii::DoInit(const WriterInfo& info, int num_fields, const Field* const *
fname = IsSpecial(path) ? path : path + "." + LogExt(); 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 ) if ( fd < 0 )
{ {