mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 18:54:43 +00:00
Merge pull request #96399 from andyprice/fileperms
Unix: Don't create world-writable files when safe save is enabled
This commit is contained in:
commit
030cc69771
2 changed files with 2 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ Error FileAccessUnixPipe::open_internal(const String &p_path, int p_mode_flags)
|
|||
struct stat st = {};
|
||||
int err = stat(path.utf8().get_data(), &st);
|
||||
if (err) {
|
||||
if (mkfifo(path.utf8().get_data(), 0666) != 0) {
|
||||
if (mkfifo(path.utf8().get_data(), 0600) != 0) {
|
||||
last_error = ERR_FILE_CANT_OPEN;
|
||||
return last_error;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue