db/update/ExcludeList: use the NarrowPath class

This commit is contained in:
Max Kellermann 2015-03-25 17:32:17 +01:00
parent cfd26f53f0
commit cd1148c6aa

View File

@ -25,6 +25,7 @@
#include "config.h" #include "config.h"
#include "ExcludeList.hxx" #include "ExcludeList.hxx"
#include "fs/Path.hxx" #include "fs/Path.hxx"
#include "fs/NarrowPath.hxx"
#include "fs/io/TextFile.hxx" #include "fs/io/TextFile.hxx"
#include "util/StringUtil.hxx" #include "util/StringUtil.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
@ -89,7 +90,7 @@ ExcludeList::Check(Path name_fs) const
#ifdef HAVE_GLIB #ifdef HAVE_GLIB
for (const auto &i : patterns) for (const auto &i : patterns)
if (i.Check(name_fs.c_str())) if (i.Check(NarrowPath(name_fs).c_str()))
return true; return true;
#else #else
// TODO: implement // TODO: implement