Skip to content

Commit

Permalink
posix 初始化 umask 设置为 0
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Jan 11, 2017
1 parent 4dcf4e5 commit 8b76da5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fibjs/src/fs/fs.cpp
Expand Up @@ -43,6 +43,10 @@ static date_t s_date;

void init_fs()
{
#ifndef _WIN32
::umask(0);
#endif

s_date.now();
}

Expand Down

0 comments on commit 8b76da5

Please sign in to comment.