diff options
-rw-r--r-- | src/SongUpdate.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx index e0a8aca1f..186512ffe 100644 --- a/src/SongUpdate.cxx +++ b/src/SongUpdate.cxx @@ -27,6 +27,7 @@ extern "C" { #include "Directory.hxx" #include "Mapper.hxx" #include "fs/Path.hxx" +#include "fs/FileSystem.hxx" #include "tag.h" #include "input_stream.h" #include "decoder_plugin.h" @@ -111,7 +112,7 @@ song_file_update(struct song *song) song->tag = NULL; } - if (stat(path_fs.c_str(), &st) < 0 || !S_ISREG(st.st_mode)) { + if (!StatFile(path_fs, st) || !S_ISREG(st.st_mode)) { return false; } |