Skip to content
Snippets Groups Projects
Commit aed987f4 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

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

parent 921c349f
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1928 passed
......@@ -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;
}
if(!p)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment