path_unlink() returned inverted status

This commit is contained in:
Jean-Francois Dockes 2020-06-14 17:59:29 +02:00
parent 2910ed02b4
commit 66845a4148

View File

@ -860,7 +860,7 @@ bool path_chdir(const std::string& path)
bool path_unlink(const std::string& path)
{
SYSPATH(path, syspath);
return UNLINK(syspath);
return UNLINK(syspath) == 0;
}
#if !defined(__GNUC__) || __GNUC__ > 4 || defined(__clang__)