posix/fd: default open mode to 0666

This commit is contained in:
Danny Robson 2016-10-07 18:15:07 +11:00
parent 51c8ee84ca
commit ea5c3befe4

View File

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