Merge remote-tracking branch 'origin/topic/vlad/gh-1145'

* origin/topic/vlad/gh-1145:
  Have mkdir in ensure_dir respect umask.
This commit is contained in:
Jon Siwek 2020-08-26 10:59:59 -07:00
commit b232474fce
3 changed files with 8 additions and 2 deletions

View file

@ -1,4 +1,10 @@
3.3.0-dev.202 | 2020-08-26 10:59:59 -0700
* GH-1145: Have mkdir in ensure_dir respect umask. (Vlad Grigorescu)
This also aligns with the mkdir BIF.
3.3.0-dev.200 | 2020-08-25 19:47:02 -0700 3.3.0-dev.200 | 2020-08-25 19:47:02 -0700
* Update plugin btests for namespace changes (Tim Wojtulewicz, Corelight) * Update plugin btests for namespace changes (Tim Wojtulewicz, Corelight)

View file

@ -1 +1 @@
3.3.0-dev.200 3.3.0-dev.202

View file

@ -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;