Commit 94f06f09 authored by Max Kellermann's avatar Max Kellermann

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.
parent d9eec8a4
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment