Max Kellermann 3cacb56bb7 fs/StandardDirectory: don't fall back to getpwuid() without $HOME
If the environment variable $HOME does not exist, don't attempt to
obtain it from /etc/passwd; without $HOME, the calling process
indicates that it does not wish MPD to access the home directory.

This also prevents MPD from attempting to load
`/root/.config/mpd/mpd.conf` if MPD got started as global systemd
service.  Reading from there makes no sense, only /etc/mpd.conf shall
be used then.

This piece of code was initially added by commit 5d857921783996.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1687
2023-01-17 18:51:49 +01:00
..
2021-12-03 14:35:41 +01:00
2021-11-22 23:30:04 -08:00
2021-10-13 12:07:05 +02:00
2021-10-13 12:07:05 +02:00
2021-01-01 19:54:28 +01:00
2021-01-01 19:54:28 +01:00
2021-01-01 19:54:28 +01:00
2021-01-01 19:54:28 +01:00
2021-01-01 19:54:28 +01:00
2021-01-01 19:54:28 +01:00
2021-01-01 19:54:28 +01:00
2021-01-01 19:54:28 +01:00
2021-01-01 19:54:28 +01:00
2021-10-13 12:07:05 +02:00
2021-01-01 19:54:28 +01:00
2021-01-01 19:54:28 +01:00
2021-01-01 19:54:28 +01:00
2021-01-01 19:54:28 +01:00
2021-01-01 19:54:28 +01:00
2021-12-03 14:35:41 +01:00
2021-01-01 19:54:28 +01:00
2021-11-22 23:28:08 -08:00
2021-10-13 12:07:05 +02:00
2021-10-13 12:07:05 +02:00
2021-01-01 19:54:28 +01:00