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

Use correct string for file path when removing file for non dir-ops

Fix issue reported by Jay Crutti.
parent bd5e5a3f
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -874,8 +874,8 @@ int sbbs_t::listfileinfo(uint dirnum, const char *filespec, long mode)
}
}
}
else if(remove(str)) /* always remove if not sysop */
bprintf(text[CouldntRemoveFile],str);
else if(remove(path)) /* always remove if not sysop */
bprintf(text[CouldntRemoveFile],path);
}
}
if(dir_op(dirnum) || useron.exempt&FLAG('R')) {
......
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