posix/fd: default open mode to 0666
This commit is contained in:
parent
51c8ee84ca
commit
ea5c3befe4
@ -27,7 +27,7 @@ using util::posix::fd;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
fd::fd (const char *path, int flags):
|
||||
m_fd (::open (path, flags))
|
||||
m_fd (::open (path, flags, 0666))
|
||||
{
|
||||
if (m_fd < 0)
|
||||
errno_error::throw_code ();
|
||||
|
Loading…
Reference in New Issue
Block a user