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

More use of fexistcase() to fix yet more Unix case-sensitive file issues <sigh>

parent f9eb9a46
No related branches found
No related tags found
No related merge requests found
...@@ -111,7 +111,7 @@ bool sbbs_t::email(int usernumber, char *top, char *subj, long mode) ...@@ -111,7 +111,7 @@ bool sbbs_t::email(int usernumber, char *top, char *subj, long mode)
sprintf(str2,"%sfile/%04u.in", cfg.data_dir,usernumber); sprintf(str2,"%sfile/%04u.in", cfg.data_dir,usernumber);
MKDIR(str2); MKDIR(str2);
sprintf(str2,"%sfile/%04u.in/%s", cfg.data_dir,usernumber,title); sprintf(str2,"%sfile/%04u.in/%s", cfg.data_dir,usernumber,title);
if(fexist(str2)) { if(fexistcase(str2)) {
bputs(text[FileAlreadyThere]); bputs(text[FileAlreadyThere]);
remove(msgpath); remove(msgpath);
return(false); } return(false); }
...@@ -142,7 +142,9 @@ bool sbbs_t::email(int usernumber, char *top, char *subj, long mode) ...@@ -142,7 +142,9 @@ bool sbbs_t::email(int usernumber, char *top, char *subj, long mode)
&& chk_ar(cfg.prot[x]->ar,&useron)) && chk_ar(cfg.prot[x]->ar,&useron))
break; break;
if(x<cfg.total_prots) /* This should be always */ if(x<cfg.total_prots) /* This should be always */
protocol(cmdstr(cfg.prot[x]->ulcmd,str2,nulstr,NULL),true); } protocol(cmdstr(cfg.prot[x]->ulcmd,str2,nulstr,NULL),true);
}
fexistcase(str2);
l=flength(str2); l=flength(str2);
if(l>0) if(l>0)
bprintf(text[FileNBytesReceived],title,ultoac(l,tmp)); bprintf(text[FileNBytesReceived],title,ultoac(l,tmp));
......
...@@ -252,7 +252,9 @@ bool sbbs_t::netmail(char *into, char *title, long mode) ...@@ -252,7 +252,9 @@ bool sbbs_t::netmail(char *into, char *title, long mode)
&& chk_ar(cfg.prot[x]->ar,&useron)) && chk_ar(cfg.prot[x]->ar,&useron))
break; break;
if(x<cfg.total_prots) /* This should be always */ if(x<cfg.total_prots) /* This should be always */
protocol(cmdstr(cfg.prot[x]->ulcmd,subj,nulstr,NULL),true); } protocol(cmdstr(cfg.prot[x]->ulcmd,subj,nulstr,NULL),true);
}
fexistcase(subj);
l=flength(subj); l=flength(subj);
if(l>0) if(l>0)
bprintf(text[FileNBytesReceived],fname,ultoac(l,tmp)); bprintf(text[FileNBytesReceived],fname,ultoac(l,tmp));
......
...@@ -130,7 +130,9 @@ bool sbbs_t::inetmail(char *into, char *subj, long mode) ...@@ -130,7 +130,9 @@ bool sbbs_t::inetmail(char *into, char *subj, long mode)
&& chk_ar(cfg.prot[x]->ar,&useron)) && chk_ar(cfg.prot[x]->ar,&useron))
break; break;
if(x<cfg.total_prots) /* This should be always */ if(x<cfg.total_prots) /* This should be always */
protocol(cmdstr(cfg.prot[x]->ulcmd,str2,nulstr,NULL),true); } protocol(cmdstr(cfg.prot[x]->ulcmd,str2,nulstr,NULL),true);
}
fexistcase(str2);
l=flength(str2); l=flength(str2);
if(l>0) if(l>0)
bprintf(text[FileNBytesReceived],title,ultoac(l,tmp)); bprintf(text[FileNBytesReceived],title,ultoac(l,tmp));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment