diff --git a/src/mmap.cpp b/src/mmap.cpp index 919a2e1591b..836cbb9a1c6 100644 --- a/src/mmap.cpp +++ b/src/mmap.cpp @@ -298,11 +298,11 @@ namespace { ; } - int file_perms(open_mode_t const mode) + mode_t file_perms(open_mode_t const mode) { // rely on default umask to filter x and w permissions // for group and others - int permissions = S_IRUSR | S_IWUSR + mode_t permissions = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; diff --git a/src/path.cpp b/src/path.cpp index 15547e6891f..2c61119d83c 100644 --- a/src/path.cpp +++ b/src/path.cpp @@ -524,7 +524,7 @@ namespace { // rely on default umask to filter x and w permissions // for group and others - int const permissions = S_IRUSR | S_IWUSR + mode_t const permissions = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;