Windows: replace unlink() with unicode-capable path_unlink()

This commit is contained in:
Jean-Francois Dockes
2020-06-02 10:56:55 +01:00
parent cb3a59f88f
commit f15e3f21fa
7 changed files with 19 additions and 11 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ public:
if (path_exists(m_stopfilename)) {
LOGINF("recollindex: asking indexer to stop because " <<
m_stopfilename << " exists\n");
unlink(m_stopfilename.c_str());
path_unlink(m_stopfilename);
stopindexing = true;
}
if (stopindexing) {
+2 -2
View File
@@ -472,10 +472,10 @@ WebQueueIndexer::processone(const string &path,
dounlink = true;
out:
if (dounlink) {
if (unlink(path.c_str())) {
if (!path_unlink(path)) {
LOGSYSERR("WebQueueIndexer::processone", "unlink", path);
}
if (unlink(dotpath.c_str())) {
if (!path_unlink(dotpath)) {
LOGSYSERR("WebQueueIndexer::processone", "unlink", dotpath);
}
}