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

viewfile() now uses case-corrected file path

Sometimes files uploaded may have the wrong case in the filebase (a different
unresolved issue), but for instances where that has happened, make those files
viewable in sbbs. This really only impacts target OSes with case-sensitive
file systems (e.g. *nix).
parent d518b015
Pipeline #3234 passed with stage
in 9 minutes and 43 seconds
......@@ -86,12 +86,14 @@ int sbbs_t::viewfile(file_t* f, bool ext)
bool sbbs_t::viewfile(const char* path)
bool sbbs_t::viewfile(const char* inpath)
char path[MAX_PATH + 1];
char viewcmd[256];
int i;
if(!fexist(path)) {
SAFECOPY(path, inpath);
if(!fexistcase(path)) {
return false;
Supports Markdown
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