From 5bd1917705d15d23f0eb4625bcc1433ce9049a4b Mon Sep 17 00:00:00 2001 From: Denis Krjuchkov Date: Sat, 2 Feb 2013 20:22:32 +0600 Subject: SongUpdate.cxx: use StatFile --- src/SongUpdate.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx index e0a8aca1..186512ff 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; } -- cgit v1.2.3