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 1139cfe5 authored by Rob Swindell's avatar Rob Swindell 💬

Fix double close (fnopen doesn't leave the descriptor open)

Fixes CID 33724.
parent 057b737e
......@@ -863,7 +863,6 @@ void sbbs_t::removeline(char *str, char *str2, char num, char skip)
}
close(file);
if((stream=fnopen(&file,str,O_WRONLY|O_TRUNC))==NULL) {
close(file);
errormsg(WHERE,ERR_OPEN,str,O_WRONLY|O_TRUNC);
free(buf);
return;
......
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