mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 09:08:20 +00:00
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:
parent
063fd204cc
commit
b9a76d7ed0
1 changed files with 1 additions and 1 deletions
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue