mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-23 19:30:20 +00:00
misc/path_utils: create folders with 0777 mode
This better matches other Unix tools. Note that in practice the umask downgrades this to 0755 or 0775, so folders don't actually end up world-readable.
This commit is contained in:
@@ -298,7 +298,7 @@ void mp_mkdirp(const char *dir)
|
||||
if (cdir)
|
||||
*cdir = 0;
|
||||
|
||||
mkdir(path, 0700);
|
||||
mkdir(path, 0777);
|
||||
|
||||
if (cdir)
|
||||
*cdir++ = '/';
|
||||
|
||||
Reference in New Issue
Block a user