mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 15:11:09 +08:00
osdep/io: restore umask-based file creation permissions
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ FILE *mp_fopen(const char *filename, const char *mode)
|
||||
}
|
||||
|
||||
// Open a CRT file descriptor
|
||||
int fd = open(filename, rwmode | oflags | O_CLOEXEC, 0600);
|
||||
int fd = open(filename, rwmode | oflags | O_CLOEXEC, 0666);
|
||||
if (fd < 0)
|
||||
return NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user