fs/StandardDirectory: use mode=0777 in mkdir() call

Of course, mode=0700 is more secure, but allowing other users access
to new directories is a choice the user should make via umask().  If
the user-chosen umask allows everybody access, MPD should probably
respect that.
This commit is contained in:
Max Kellermann 2022-11-28 14:03:43 +01:00
parent d9eec8a455
commit 94f06f0946
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ GetAppRuntimeDir() noexcept
#ifdef USE_XDG
if (const auto user_dir = GetUserRuntimeDir(); !user_dir.IsNull()) {
auto dir = user_dir / Path::FromFS("mpd");
mkdir(dir.c_str(), 0700);
mkdir(dir.c_str(), 0777);
return dir;
}
#endif