mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +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
|
|
@ -118,7 +118,7 @@ Error FileAccessUnix::open_internal(const String &p_path, int p_mode_flags) {
|
|||
last_error = ERR_FILE_CANT_OPEN;
|
||||
return last_error;
|
||||
}
|
||||
fchmod(fd, 0666);
|
||||
fchmod(fd, 0644);
|
||||
path = String::utf8(cs.ptr());
|
||||
|
||||
f = fdopen(fd, mode_string);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue