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

Log a notice-level message when renaming a bad bundle file to *.?_? or *.?-?

parent 76fbfb15
No related branches found
No related tags found
No related merge requests found
Pipeline #7110 passed
......@@ -2761,7 +2761,9 @@ bool unpack_bundle(const char* inbound)
path[strlen(path)-2]='-';
if(fexistcase(path))
delfile(path, __LINE__);
if(rename(fname,path))
if(rename(fname,path) == 0)
lprintf(LOG_NOTICE, "Bad bundle (%s) renamed to: %s", fname, path);
else
lprintf(LOG_ERR,"ERROR line %d renaming %s to %s"
,__LINE__,fname,path);
continue;
......
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