Change file creation permissions to 0666

This commit is contained in:
PabloG02 2023-04-09 22:46:59 +02:00 committed by Billy Laws
parent 71a0033f5b
commit f85ecc23be
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, S_IRUSR | S_IWUSR)};
int fd{open(fullPath.c_str(), O_RDWR | O_CREAT, 0666)};
if (fd < 0) {
if (errno != ENOENT)
throw exception("Failed to create file: {}", strerror(errno));