Commit a3c0f031 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Deleting a file's extended description would try to delete some other file too

This is a "forever bug". I guess at one time I stored each file's extended
description in a separate file? I don't know, but this remove() call is
clearly wrong.
parent 8178eafc
Pipeline #67 passed with stage
in 9 minutes and 17 seconds
......@@ -1184,8 +1184,7 @@ int sbbs_t::listfileinfo(uint dirnum, char *filespec, long mode)
break;
if(f.misc&FM_EXTDESC) {
if(!noyes(text[DeleteExtDescriptionQ])) {
remove(str);
f.misc&=~FM_EXTDESC; }
f.misc&=~FM_EXTDESC; }
}
if(!dir_op(dirnum)) {
putfiledat(&cfg,&f);
......
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