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

Commit aed987f4 authored by Rob Swindell's avatar Rob Swindell 💬

Don't log a file removal error if the file doesn't exist.

parent 921c349f
Pipeline #1928 passed with stage
in 10 minutes and 27 seconds
......@@ -94,7 +94,7 @@ BOOL delfattach(scfg_t* cfg, smbmsg_t* msg)
if(sp) tp=sp+1;
if(strcspn(tp, ILLEGAL_FILENAME_CHARS) == strlen(tp)) {
SAFEPRINTF2(path, "%s/%s", dir, tp);
if(remove(path) != 0)
if(fexist(path) && remove(path) != 0)
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