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:
sfan5
2025-06-01 17:49:41 +02:00
parent 9db49973f2
commit 6b178e4f5a

View File

@@ -298,7 +298,7 @@ void mp_mkdirp(const char *dir)
if (cdir)
*cdir = 0;
mkdir(path, 0700);
mkdir(path, 0777);
if (cdir)
*cdir++ = '/';