mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-25 15:46:53 +01:00
Change file creation permissions to 0666
This commit is contained in:
parent
71a0033f5b
commit
f85ecc23be
@ -20,7 +20,7 @@ namespace skyline::vfs {
|
|||||||
|
|
||||||
// Create a directory that will hold the file
|
// Create a directory that will hold the file
|
||||||
CreateDirectory(path.substr(0, path.find_last_of('/')), true);
|
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 (fd < 0) {
|
||||||
if (errno != ENOENT)
|
if (errno != ENOENT)
|
||||||
throw exception("Failed to create file: {}", strerror(errno));
|
throw exception("Failed to create file: {}", strerror(errno));
|
||||||
|
Loading…
Reference in New Issue
Block a user