Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 1e441eda authored by Rob Swindell's avatar Rob Swindell 💬

Don't log an error if after a failure to remove a file, the file doesn't exist

parent 904b3a58
......@@ -336,7 +336,7 @@ function remove_file(fname)
{
if (file_remove(fname))
log(LOG_INFO, "Deleted file: " + fname);
else
else if(file_exists(fname))
log(LOG_ERROR, "Error " + errno + " (" + errno_str + ") deleting file: " + fname);
}
......
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