Commit 5bd19177 authored by Denis Krjuchkov's avatar Denis Krjuchkov

SongUpdate.cxx: use StatFile

parent 178c6c20
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment