diff options
author | Max Kellermann <max@duempel.org> | 2014-08-07 18:54:06 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-07 19:38:25 +0200 |
commit | aa2e4d92e0005f4516eb591803120eff89f99109 (patch) | |
tree | beb83ec24f0cb5b527ec60bd56c2722681f1d3f5 /src/fs/StandardDirectory.cxx | |
parent | 0ea66a1275da319e2443fa1536cec7ea7fc53b53 (diff) | |
download | mpd-aa2e4d92e0005f4516eb591803120eff89f99109.tar.gz mpd-aa2e4d92e0005f4516eb591803120eff89f99109.tar.xz mpd-aa2e4d92e0005f4516eb591803120eff89f99109.zip |
fs/io/BufferedReader: new class to replace class TextFile
The new class is pluggable, to prepare for gzipped database files.
For now, the TextFile class remains, and will be refactored away
later.
Diffstat (limited to 'src/fs/StandardDirectory.cxx')
-rw-r--r-- | src/fs/StandardDirectory.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fs/StandardDirectory.cxx b/src/fs/StandardDirectory.cxx index 7a8666501..7a836f906 100644 --- a/src/fs/StandardDirectory.cxx +++ b/src/fs/StandardDirectory.cxx @@ -40,6 +40,7 @@ #endif #ifdef USE_XDG +#include "util/Error.hxx" #include "util/StringUtil.hxx" #include "io/TextFile.hxx" #include <string.h> @@ -204,7 +205,7 @@ static AllocatedPath GetUserDir(const char *name) if (config_dir.IsNull()) return result; auto dirs_file = AllocatedPath::Build(config_dir, "user-dirs.dirs"); - TextFile input(dirs_file); + TextFile input(dirs_file, IgnoreError()); if (input.HasFailed()) return result; char *line; |