aboutsummaryrefslogtreecommitdiff
path: root/src/posix_extras.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/posix_extras.h')
-rw-r--r--src/posix_extras.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/posix_extras.h b/src/posix_extras.h
index 840b448..6f2fb37 100644
--- a/src/posix_extras.h
+++ b/src/posix_extras.h
@@ -70,7 +70,7 @@ class Directory {
// RAII wrapper for Unix file descriptors.
class File {
public:
- File(const char* path, int flags);
+ File(const char* path, int flags) : File(path, flags, 0777) {}
File(const char* path, int flags, mode_t mode);
File(const File&);
File(File&& other) = default;