Use constants instead of 0666

This commit is contained in:
PabloG02 2023-04-27 23:55:22 +02:00 committed by Billy Laws
parent e7cf7c9dae
commit a6c2699395
1 changed files with 1 additions and 1 deletions

View File

@ -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));