From a6f84995ff09acd4713051d97e12ce3aa86c084f Mon Sep 17 00:00:00 2001 From: PabloG02 Date: Thu, 27 Apr 2023 23:55:22 +0200 Subject: [PATCH] Use constants instead of 0666 --- app/src/main/cpp/skyline/vfs/os_filesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/vfs/os_filesystem.cpp b/app/src/main/cpp/skyline/vfs/os_filesystem.cpp index 1094b33d..b51ba608 100644 --- a/app/src/main/cpp/skyline/vfs/os_filesystem.cpp +++ b/app/src/main/cpp/skyline/vfs/os_filesystem.cpp @@ -20,7 +20,7 @@ namespace skyline::vfs { // Create a directory that will hold the file CreateDirectory(path.substr(0, path.find_last_of('/')), true); - int fd{open(fullPath.c_str(), O_RDWR | O_CREAT, 0666)}; + int fd{open(fullPath.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)}; if (fd < 0) { if (errno != ENOENT) throw exception("Failed to create file: {}", strerror(errno));