From 28a87f4a6532304b2ede31998b03fbad740f4fa3 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Sat, 20 Feb 2016 13:45:09 -0500 Subject: Unify constructors for File --- src/posix_extras.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/posix_extras.h') 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; -- cgit v1.2.3