mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Have mkdir in ensure_dir respect umask.
This also aligns with the mkdir bif. Fixes #1145
This commit is contained in:
parent
427a7de411
commit
e12db6bac0
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ bool ensure_intermediate_dirs(const char* dirname)
|
||||||
|
|
||||||
bool ensure_dir(const char *dirname)
|
bool ensure_dir(const char *dirname)
|
||||||
{
|
{
|
||||||
if ( mkdir(dirname, 0700) == 0 )
|
if ( mkdir(dirname, 0777) == 0 )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
auto mkdir_errno = errno;
|
auto mkdir_errno = errno;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue