aboutsummaryrefslogtreecommitdiff
path: root/src/posix_extras.h
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@mit.edu>2016-02-20 13:45:09 -0500
committerGravatar Benjamin Barenblat <bbaren@mit.edu>2016-02-20 13:45:09 -0500
commit28a87f4a6532304b2ede31998b03fbad740f4fa3 (patch)
treecba8cb987d3a4b9c6ddda44a422cd033071fef70 /src/posix_extras.h
parent750e1c41e97cd9b53da3f6a64938c528951d358b (diff)
Unify constructors for File
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;