Skip to content
Snippets Groups Projects
Commit 909c5c31 authored by rswindell's avatar rswindell
Browse files

printfile() and printtail() now use fexistcase() to get the proper case

of the passed filei, fixing a long-standing issue with a couple of menu
commands (e.g. "MAININFO") in the WWIV (and possibly other) command shells.
Thank Nelgin. Are we keeping count yet?
parent ec742ab5
No related branches found
No related tags found
No related merge requests found
/* prntfile.cpp */
// vi: tabstop=4
/* Synchronet file print/display routines */
......@@ -79,6 +80,7 @@ void sbbs_t::printfile(char *str, long mode)
CRLF;
}
fexistcase(str);
if((stream=fnopen(&file,str,O_RDONLY|O_DENYNONE))==NULL) {
lprintf(LOG_NOTICE,"Node %d !Error %d (%s) opening: %s"
,cfg.node_num,errno,strerror(errno),str);
......@@ -135,6 +137,7 @@ void sbbs_t::printtail(char *str, int lines, long mode)
if(!tos) {
CRLF;
}
fexistcase(str);
if((file=nopen(str,O_RDONLY|O_DENYNONE))==-1) {
lprintf(LOG_NOTICE,"Node %d !Error %d (%s) opening: %s"
,cfg.node_num,errno,strerror(errno),str);
......
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