mpd/src/fs
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 5d85792178.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1687
2023-01-17 18:51:49 +01:00
..
io fs/io: move to io/ 2021-12-03 14:35:41 +01:00
AllocatedPath.cxx manual braced init 2021-11-22 23:30:04 -08:00
AllocatedPath.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
Charset.cxx Partition, ...: use libfmt for logging 2021-06-24 21:40:11 +02:00
Charset.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
CheckFile.cxx Partition, ...: use libfmt for logging 2021-06-24 21:40:11 +02:00
CheckFile.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
Config.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
Config.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
DirectoryReader.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
DirectoryReader.hxx win32, ...: avoid including windows.h 2021-05-19 17:25:32 +02:00
Domain.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
Domain.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
Features.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
FileInfo.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
FileSystem.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
FileSystem.hxx fs/FileSystem: add CreateDirectoryNoThrow() 2022-11-28 14:19:08 +01:00
Glob.cxx meson.build: define NOUSER on Windows for lighter windows.h 2021-05-19 18:02:49 +02:00
Glob.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
Limits.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
List.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
List.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
LookupFile.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
LookupFile.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
meson.build fs/io: move to io/ 2021-12-03 14:35:41 +01:00
NarrowPath.cxx util/AllocatedString: remove Null(), IsNull() 2021-03-04 18:05:29 +01:00
NarrowPath.hxx util/AllocatedString: rename to BasicAllocatedString 2021-03-04 18:03:56 +01:00
Path2.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
Path.cxx return by braced init list 2021-11-22 23:28:08 -08:00
Path.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
StandardDirectory.cxx fs/StandardDirectory: don't fall back to getpwuid() without $HOME 2023-01-17 18:51:49 +01:00
StandardDirectory.hxx fs/StandardDirectory: add GetAppCacheDir() 2022-11-28 14:19:30 +01:00
Traits.cxx fs/Traits: add PathTraitsUTF8::IsAbsoluteOrHasScheme() 2021-08-05 20:09:06 +02:00
Traits.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
XDG.hxx copyright year 2021 2021-01-01 19:54:28 +01:00