aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2013-02-02 20:22:32 +0600
committerDenis Krjuchkov <denis@crazydev.net>2013-02-02 20:22:32 +0600
commit5bd1917705d15d23f0eb4625bcc1433ce9049a4b (patch)
treea90aaaad86c4bd70104fc44e34f0bae607f710ef /src
parent178c6c20cdbe95eba898a0d29c9aad2469f3dd9f (diff)
downloadmpd-5bd1917705d15d23f0eb4625bcc1433ce9049a4b.tar.gz
mpd-5bd1917705d15d23f0eb4625bcc1433ce9049a4b.tar.xz
mpd-5bd1917705d15d23f0eb4625bcc1433ce9049a4b.zip
SongUpdate.cxx: use StatFile
Diffstat (limited to 'src')
-rw-r--r--src/SongUpdate.cxx3
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;
}