Commit 7731d16d authored by rswindell's avatar rswindell

Converted hard-coded file names and paths to lowercase for Unix file system compatibility.

parent 62827ae2
......@@ -200,15 +200,15 @@ bool sbbs_t::answer()
if(!useron.number) { /* manual/regular logon */
/* Display ANSWER screen */
sprintf(str,"%sANSWER",cfg.text_dir);
sprintf(tmp,"%s.%s",str,autoterm&WIP ? "WIP":"RIP");
sprintf(str2,"%s.ANS",str);
sprintf(str,"%sanswer",cfg.text_dir);
sprintf(tmp,"%s.%s",str,autoterm&WIP ? "wip":"rip");
sprintf(str2,"%s.ans",str);
if(autoterm&(RIP|WIP) && fexist(tmp))
strcat(str,autoterm&WIP ? ".WIP":".RIP");
strcat(str,autoterm&WIP ? ".wip":".rip");
else if(autoterm&ANSI && fexist(str2))
strcat(str,".ANS");
strcat(str,".ans");
else
strcat(str,".ASC");
strcat(str,".asc");
rioctl(IOSM|PAUSE);
sys_status|=SS_PAUSEON;
printfile(str,P_NOABORT);
......
......@@ -3170,13 +3170,13 @@ int main(int argc, char **argv)
strcpy(str,src);
if(!strchr(str,'.'))
sprintf(src,"%s.SRC",str);
sprintf(src,"%s.src",str);
strcpy(str,src);
p=strrchr(str,'.');
if(p)
*p=0;
strcat(str,".BIN");
strcat(str,".bin");
if(outdir[0]) {
p=strrchr(str,'\\');
......
......@@ -52,7 +52,7 @@ void sbbs_t::batchmenu()
bputs(text[NoFilesInBatchQueue]);
return; }
if(useron.misc&(RIP|WIP) && !(useron.misc&EXPERT))
menu("BATCHXFR");
menu("batchxfer");
lncntr=0;
while(online && !done && (batdn_total || batup_total
|| cfg.upload_dir!=INVALID_DIR)) {
......@@ -63,7 +63,7 @@ void sbbs_t::batchmenu()
CRLF;
if(lncntr) /* CRLF or SYNC can cause pause */
pause(); }
menu("BATCHXFR"); }
menu("batchxfr"); }
ASYNC;
bputs(text[BatchMenuPrompt]);
ch=(char)getkeys("BCDLQRU?\r",0);
......@@ -72,7 +72,7 @@ void sbbs_t::batchmenu()
switch(ch) {
case '?':
if(useron.misc&(EXPERT|RIP|WIP))
menu("BATCHXFR");
menu("batchxfr");
break;
case CR:
case 'Q':
......@@ -106,7 +106,7 @@ void sbbs_t::batchmenu()
if(!(useron.exempt&FLAG('T')) && !SYSOP && totaltime>timeleft) {
bputs(text[NotEnoughTimeToDl]);
break; }
menu("BIPROT");
menu("biprot");
if(!create_batchdn_lst())
break;
if(!create_batchup_lst())
......@@ -258,7 +258,7 @@ void sbbs_t::batchmenu()
if(!batup_total && cfg.upload_dir==INVALID_DIR) {
bputs(text[UploadQueueIsEmpty]);
break; }
menu("BATUPROT");
menu("batuprot");
if(!create_batchup_lst())
break;
if(!create_bimodem_pth())
......@@ -374,7 +374,7 @@ void sbbs_t::start_batch_download()
if(!(useron.exempt&FLAG('T')) && !SYSOP && totaltime>timeleft) {
bputs(text[NotEnoughTimeToDl]);
return; }
menu("BATDPROT");
menu("batdprot");
if(!create_batchdn_lst())
return;
if(!create_bimodem_pth())
......
......@@ -72,7 +72,7 @@ void sbbs_t::bulkmail(uchar *ar)
if((i=smb_stack(&smb,SMB_STACK_PUSH))!=0) {
errormsg(WHERE,ERR_OPEN,"MAIL",i);
return; }
sprintf(smb.file,"%sMAIL",cfg.data_dir);
sprintf(smb.file,"%smail",cfg.data_dir);
smb.retry_time=cfg.smb_retry_time;
if((i=smb_open(&smb))!=0) {
smb_stack(&smb,SMB_STACK_POP);
......
......@@ -59,7 +59,7 @@ void sbbs_t::chatsection()
action=NODE_CHAT;
if(useron.misc&(RIP|WIP) || !(useron.misc&EXPERT))
menu("CHAT");
menu("chat");
ASYNC;
bputs(text[ChatPrompt]);
while(online) {
......@@ -101,7 +101,7 @@ void sbbs_t::chatsection()
if(!chan_access(0))
break;
if(useron.misc&(RIP|WIP) ||!(useron.misc&EXPERT))
menu("MULTCHAT");
menu("multchat");
getnodedat(cfg.node_num,&thisnode,1);
bputs(text[WelcomeToMultiChat]);
channel=1;
......@@ -113,7 +113,7 @@ void sbbs_t::chatsection()
gurubuf=NULL; }
if(cfg.chan[0]->misc&CHAN_GURU && cfg.chan[0]->guru<cfg.total_gurus
&& chk_ar(cfg.guru[cfg.chan[0]->guru]->ar,&useron)) {
sprintf(str,"%s%s.DAT",cfg.ctrl_dir,cfg.guru[cfg.chan[0]->guru]->code);
sprintf(str,"%s%s.dat",cfg.ctrl_dir,cfg.guru[cfg.chan[0]->guru]->code);
if((file=nopen(str,O_RDONLY))==-1) {
errormsg(WHERE,ERR_OPEN,str,O_RDONLY);
break; }
......@@ -249,7 +249,7 @@ void sbbs_t::chatsection()
&& cfg.chan[savch-1]->guru<cfg.total_gurus
&& chk_ar(cfg.guru[cfg.chan[savch-1]->guru]->ar,&useron
)) {
sprintf(str,"%s%s.DAT",cfg.ctrl_dir
sprintf(str,"%s%s.dat",cfg.ctrl_dir
,cfg.guru[cfg.chan[savch-1]->guru]->code);
if((file=nopen(str,O_RDONLY))==-1) {
errormsg(WHERE,ERR_OPEN,str,O_RDONLY);
......@@ -372,9 +372,9 @@ void sbbs_t::chatsection()
done=1;
break;
case '*':
sprintf(str,"%sMENU/CHAN.*",cfg.text_dir);
sprintf(str,"%smenu/chan.*",cfg.text_dir);
if(fexist(str))
menu("CHAN");
menu("chan");
else {
bputs(text[ChatChanLstHdr]);
bputs(text[ChatChanLstTitles]);
......@@ -408,7 +408,7 @@ void sbbs_t::chatsection()
CRLF; }
break;
case '?': /* menu */
menu("MULTCHAT");
menu("multchat");
break; } }
else {
ungetkey(ch);
......@@ -562,7 +562,7 @@ void sbbs_t::chatsection()
break; }
if(gurubuf)
FREE(gurubuf);
sprintf(str,"%s%s.DAT",cfg.ctrl_dir,cfg.guru[i]->code);
sprintf(str,"%s%s.dat",cfg.ctrl_dir,cfg.guru[i]->code);
if((file=nopen(str,O_RDONLY))==-1) {
errormsg(WHERE,ERR_OPEN,str,O_RDONLY);
return; }
......@@ -580,7 +580,7 @@ void sbbs_t::chatsection()
break;
case '?':
if(useron.misc&EXPERT)
menu("CHAT");
menu("chat");
break;
default: /* 'Q' or <CR> */
lncntr=0;
......@@ -598,7 +598,7 @@ void sbbs_t::chatsection()
if(lncntr) /* CRLF or SYNC can cause pause */
pause(); }
#endif
menu("CHAT"); }
menu("chat"); }
ASYNC;
bputs(text[ChatPrompt]); }
if(gurubuf)
......@@ -734,7 +734,7 @@ void sbbs_t::privchat(bool local)
sys_status|=SS_SPLITP;
/*
if(!(useron.misc&EXPERT))
menu("PRIVCHAT");
menu("privchat");
*/
if(!(sys_status&SS_SPLITP)) {
......@@ -744,15 +744,15 @@ void sbbs_t::privchat(bool local)
bputs(text[WelcomeToPrivateChat]);
}
sprintf(str,"%sCHAT.DAB",cfg.node_dir);
sprintf(str,"%schat.dab",cfg.node_dir);
if((out=sopen(str,O_RDWR|O_CREAT|O_BINARY,SH_DENYNO))==-1) {
errormsg(WHERE,ERR_OPEN,str,O_RDWR|O_DENYNONE|O_CREAT);
return; }
if(local)
sprintf(str,"%sLCHAT.DAB",cfg.node_dir);
sprintf(str,"%slchat.dab",cfg.node_dir);
else
sprintf(str,"%sCHAT.DAB",cfg.node_path[n-1]);
sprintf(str,"%schat.dab",cfg.node_path[n-1]);
if(!fexist(str)) /* Wait while it's created for the first time */
mswait(2000);
if((in=sopen(str,O_RDWR|O_CREAT|O_BINARY,SH_DENYNO))==-1) {
......
......@@ -157,9 +157,8 @@ int main(int argc, char **argv)
p=strrchr(smb.file,'.');
s=strrchr(smb.file,'\\');
if(p>s) *p=0;
strupr(smb.file);
sprintf(str,"%s.SHD",smb.file);
sprintf(str,"%s.shd",smb.file);
if(!fexist(str)) {
printf("\n%s doesn't exist.\n",smb.file);
continue; }
......
......@@ -61,7 +61,7 @@ uint sbbs_t::finduser(char *instr)
return(i); }
strcpy(str,instr);
strupr(str);
sprintf(str3,"%sUSER/NAME.DAT",cfg.data_dir);
sprintf(str3,"%suser/name.dat",cfg.data_dir);
if(flength(str3)<1L)
return(0);
if((stream=fnopen(&file,str3,O_RDONLY))==NULL) {
......@@ -113,7 +113,7 @@ int sbbs_t::getfiles(uint dirnum)
char str[256];
long l;
sprintf(str,"%s%s.IXB",cfg.dir[dirnum]->data_dir, cfg.dir[dirnum]->code);
sprintf(str,"%s%s.ixb",cfg.dir[dirnum]->data_dir, cfg.dir[dirnum]->code);
l=flength(str);
if(l>0L)
return(l/F_IXBSIZE);
......@@ -130,7 +130,7 @@ int sbbs_t::getuserxfers(int fromuser, int destuser, char *fname)
int file,found=0;
FILE *stream;
sprintf(str,"%sXFER.IXT",cfg.data_dir);
sprintf(str,"%sxfer.ixt",cfg.data_dir);
if(!fexist(str))
return(0);
if(!flength(str)) {
......@@ -160,7 +160,7 @@ uint sbbs_t::gettotalfiles(uint dirnum)
{
char str[81];
sprintf(str,"%s%s.IXB", cfg.dir[dirnum]->data_dir, cfg.dir[dirnum]->code);
sprintf(str,"%s%s.ixb", cfg.dir[dirnum]->data_dir, cfg.dir[dirnum]->code);
return((uint)(flength(str)/F_IXBSIZE));
}
......
......@@ -38,7 +38,7 @@
#include "sbbs.h"
/****************************************************************************/
/* Puts 'name' into slot 'number' in USER/NAME.DAT */
/* Puts 'name' into slot 'number' in user/name.dat */
/****************************************************************************/
void sbbs_t::putusername(int number, char *name)
{
......@@ -50,7 +50,7 @@ void sbbs_t::putusername(int number, char *name)
errormsg(WHERE,ERR_CHK,"user number",number);
return; }
sprintf(str,"%sUSER/NAME.DAT", cfg.data_dir);
sprintf(str,"%suser/name.dat", cfg.data_dir);
if((file=nopen(str,O_RDWR|O_CREAT))==-1) {
errormsg(WHERE,ERR_OPEN,str,O_RDWR|O_CREAT);
return; }
......@@ -90,7 +90,7 @@ void sbbs_t::getmsgptrs()
if(!useron.number)
return;
bputs(text[LoadingMsgPtrs]);
sprintf(str,"%sUSER/PTRS/%4.4u.IXB", cfg.data_dir,useron.number);
sprintf(str,"%suser/ptrs/%4.4u.ixb", cfg.data_dir,useron.number);
if((stream=fnopen(&file,str,O_RDONLY))==NULL) {
for(i=0;i<cfg.total_subs;i++) {
sub_ptr[i]=sav_sub_ptr[i]=0;
......@@ -142,7 +142,7 @@ void sbbs_t::putmsgptrs()
if(!useron.number)
return;
sprintf(str,"%sUSER/PTRS/%4.4u.IXB", cfg.data_dir,useron.number);
sprintf(str,"%suser/ptrs/%4.4u.ixb", cfg.data_dir,useron.number);
if((file=nopen(str,O_WRONLY|O_CREAT))==-1) {
errormsg(WHERE,ERR_OPEN,str,O_WRONLY|O_CREAT);
return; }
......@@ -195,7 +195,7 @@ uint sbbs_t::userdatdupe(uint usernumber, uint offset, uint datlen, char *dat
long l,length;
truncsp(dat);
sprintf(str,"%sUSER/USER.DAT", cfg.data_dir);
sprintf(str,"%suser/user.dat", cfg.data_dir);
if((file=nopen(str,O_RDONLY|O_DENYNONE))==-1)
return(0);
length=filelength(file);
......@@ -213,7 +213,7 @@ uint sbbs_t::userdatdupe(uint usernumber, uint offset, uint datlen, char *dat
if(i>=LOOP_NODEDAB) {
close(file);
errormsg(WHERE,ERR_LOCK,"USER.DAT",l);
errormsg(WHERE,ERR_LOCK,"user.dat",l);
return(0); }
read(file,str,datlen);
......
......@@ -96,7 +96,7 @@ void sbbs_t::downloadfile(file_t* f)
/* Update IXB File */
/*******************/
f->datedled=time(NULL);
sprintf(str,"%s%s.IXB",cfg.dir[f->dir]->data_dir,cfg.dir[f->dir]->code);
sprintf(str,"%s%s.ixb",cfg.dir[f->dir]->data_dir,cfg.dir[f->dir]->code);
if((file=nopen(str,O_RDWR))==-1) {
errormsg(WHERE,ERR_OPEN,str,O_RDWR);
return; }
......
......@@ -110,9 +110,9 @@ bool sbbs_t::email(int usernumber, char *top, char *subj, long mode)
return(false); }
if(mode&WM_FILE) {
sprintf(str2,"%sFILE/%04u.IN", cfg.data_dir,usernumber);
sprintf(str2,"%sfile/%04u.in", cfg.data_dir,usernumber);
_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)) {
bputs(text[FileAlreadyThere]);
remove(msgpath);
......@@ -127,7 +127,7 @@ bool sbbs_t::email(int usernumber, char *top, char *subj, long mode)
strcat(str,title);
mv(str,str2,1); }
else { /* Remote */
menu("ULPROT");
menu("ulprot");
mnemonics(text[ProtocolOrQuit]);
strcpy(str,"Q");
for(x=0;x<cfg.total_prots;x++)
......@@ -158,7 +158,7 @@ bool sbbs_t::email(int usernumber, char *top, char *subj, long mode)
if((i=smb_stack(&smb,SMB_STACK_PUSH))!=0) {
errormsg(WHERE,ERR_OPEN,"MAIL",i);
return(false); }
sprintf(smb.file,"%sMAIL", cfg.data_dir);
sprintf(smb.file,"%smail", cfg.data_dir);
smb.retry_time=cfg.smb_retry_time;
if((i=smb_open(&smb))!=0) {
smb_stack(&smb,SMB_STACK_POP);
......
......@@ -511,7 +511,7 @@ long sbbs_t::exec_bin(char *mod, csi_t *csi)
memcpy(&bin,csi,sizeof(csi_t));
clearvars(&bin);
sprintf(str,"%s%s.BIN",cfg.exec_dir,mod);
sprintf(str,"%s%s.bin",cfg.exec_dir,mod);
if((file=nopen(str,O_RDONLY|O_BINARY))==-1) {
errormsg(WHERE,ERR_OPEN,str,O_RDONLY|O_BINARY);
return(-1); }
......@@ -836,7 +836,7 @@ int sbbs_t::exec(csi_t *csi)
if(text[i]!=nulstr)
FREE(text[i]);
text[i]=text_sav[i]; }
sprintf(str,"%s%s.DAT"
sprintf(str,"%s%s.dat"
,cfg.ctrl_dir,cmdstr((char*)csi->ip,path,csi->str,(char*)buf));
if((stream=fnopen(&file,str,O_RDONLY))==NULL) {
errormsg(WHERE,ERR_OPEN,str,O_RDONLY);
......
......@@ -53,9 +53,9 @@ int sbbs_t::execfile(csi_t *csi)
while(online) {
j=0;
if(usrlibs>1) {
sprintf(str,"%sMENU/LIBS.*", cfg.text_dir);
sprintf(str,"%smenu/libs.*", cfg.text_dir);
if(fexist(str))
menu("LIBS");
menu("libs");
else {
bputs(text[CfgLibLstHdr]);
for(i=0;i<usrlibs && !msgabort();i++) {
......@@ -75,9 +75,9 @@ int sbbs_t::execfile(csi_t *csi)
j=curlib;
else
j--; }
sprintf(str,"%sMENU/DIRS%u.*", cfg.text_dir, usrlib[j]+1);
sprintf(str,"%smenu/dirs%u.*", cfg.text_dir, usrlib[j]+1);
if(fexist(str)) {
sprintf(str,"DIRS%u",usrlib[j]+1);
sprintf(str,"dirs%u",usrlib[j]+1);
menu(str); }
else {
CLS;
......@@ -183,9 +183,9 @@ int sbbs_t::execfile(csi_t *csi)
case CS_FILE_SHOW_LIBRARIES:
if(!usrlibs) return(0);
sprintf(str,"%sMENU/LIBS.*", cfg.text_dir);
sprintf(str,"%smenu/libs.*", cfg.text_dir);
if(fexist(str)) {
menu("LIBS");
menu("libs");
return(0); }
bputs(text[LibLstHdr]);
for(i=0;i<usrlibs && !msgabort();i++) {
......@@ -199,9 +199,9 @@ int sbbs_t::execfile(csi_t *csi)
case CS_FILE_SHOW_DIRECTORIES:
if(!usrlibs) return(0);
sprintf(str,"%sMENU/DIRS%u.*", cfg.text_dir, usrlib[curlib]+1);
sprintf(str,"%smenu/dirs%u.*", cfg.text_dir, usrlib[curlib]+1);
if(fexist(str)) {
sprintf(str,"DIRS%u",usrlib[curlib]+1);
sprintf(str,"dirs%u",usrlib[curlib]+1);
menu(str);
return(0); }
CRLF;
......
......@@ -154,11 +154,11 @@ int sbbs_t::exec_function(csi_t *csi)
ver();
if(yesno(text[ViewSysInfoFileQ])) {
CLS;
sprintf(str,"%sSYSTEM.MSG", cfg.text_dir);
sprintf(str,"%ssystem.msg", cfg.text_dir);
printfile(str,0); }
if(yesno(text[ViewLogonMsgQ])) {
CLS;
menu("LOGON"); }
menu("logon"); }
return(0);
case CS_INFO_SUBBOARD: /* Sub-board information */
if(!usrgrps) return(0);
......@@ -212,9 +212,9 @@ int sbbs_t::exec_function(csi_t *csi)
return(0);
case CS_INFO_XFER_POLICY:
if(!usrlibs) return(0);
sprintf(str,"%sMENU/TPOLICY.*", cfg.text_dir);
sprintf(str,"%smenu/tpolicy.*", cfg.text_dir);
if(fexist(str))
menu("TPOLICY");
menu("tpolicy");
else {
bprintf(text[TransferPolicyHdr],cfg.sys_name);
bprintf(text[TpUpload]
......@@ -244,7 +244,7 @@ int sbbs_t::exec_function(csi_t *csi)
if(cfg.logoff_mod[0])
exec_bin(cfg.logoff_mod,csi);
user_event(EVENT_LOGOFF);
menu("LOGOFF");
menu("logoff");
SYNC;
hangup(); }
return(0);
......@@ -297,7 +297,7 @@ int sbbs_t::exec_function(csi_t *csi)
break;
if(i>=cfg.total_gurus)
return(0);
sprintf(str,"%s%s.DAT", cfg.ctrl_dir, cfg.guru[i]->code);
sprintf(str,"%s%s.dat", cfg.ctrl_dir, cfg.guru[i]->code);
if((file=nopen(str,O_RDONLY))==-1) {
errormsg(WHERE,ERR_OPEN,str,O_RDONLY);
return(0); }
......@@ -470,7 +470,7 @@ int sbbs_t::exec_function(csi_t *csi)
tm=gmtime(&now);
if(tm==NULL)
return(0);
sprintf(str,"%sLOGS/%2.2d%2.2d%2.2d.LOG", cfg.data_dir
sprintf(str,"%slogs/%2.2d%2.2d%2.2d.LOG", cfg.data_dir
,tm->tm_mon+1,tm->tm_mday,TM_YEAR(tm->tm_year));
printfile(str,0);
return(0);
......@@ -481,7 +481,7 @@ int sbbs_t::exec_function(csi_t *csi)
tm=gmtime(&now);
if(tm==NULL)
return(0);
sprintf(str,"%sLOGS/%2.2d%2.2d%2.2d.LOG",cfg.data_dir
sprintf(str,"%slogs/%2.2d%2.2d%2.2d.LOG",cfg.data_dir
,tm->tm_mon+1,tm->tm_mday,TM_YEAR(tm->tm_year));
printfile(str,0);
return(0);
......@@ -649,7 +649,7 @@ int sbbs_t::exec_function(csi_t *csi)
case CS_FILE_SEND:
menu("DLPROT");
menu("dlprot");
mnemonics(text[ProtocolOrQuit]);
strcpy(str,"Q");
for(i=0;i<cfg.total_prots;i++)
......@@ -670,7 +670,7 @@ int sbbs_t::exec_function(csi_t *csi)
case CS_FILE_PUT:
if(!chksyspass(0))
return(0);
menu("ULPROT");
menu("ulprot");
mnemonics(text[ProtocolOrQuit]);
strcpy(str,"Q");
for(i=0;i<cfg.total_prots;i++)
......
......@@ -51,9 +51,9 @@ int sbbs_t::execmsg(csi_t *csi)
while(online) {
j=0;
if(usrgrps>1) {
sprintf(str,"%sMENU/GRPS.*", cfg.text_dir);
sprintf(str,"%smenu/grps.*", cfg.text_dir);
if(fexist(str))
menu("GRPS");
menu("grps");
else {
bputs(text[CfgGrpLstHdr]);
for(i=0;i<usrgrps && !msgabort();i++) {
......@@ -73,9 +73,9 @@ int sbbs_t::execmsg(csi_t *csi)
j=curgrp;
else
j--; }
sprintf(str,"%sMENU/SUBS%u.*", cfg.text_dir, usrgrp[j]+1);
sprintf(str,"%smenu/subs%u.*", cfg.text_dir, usrgrp[j]+1);
if(fexist(str)) {
sprintf(str,"SUBS%u",usrgrp[j]+1);
sprintf(str,"subs%u",usrgrp[j]+1);
menu(str); }
else {
CLS;
......@@ -192,9 +192,9 @@ int sbbs_t::execmsg(csi_t *csi)
case CS_MSG_SHOW_GROUPS:
if(!usrgrps) return(0);
sprintf(str,"%sMENU/GRPS.*", cfg.text_dir);
sprintf(str,"%smenu/grps.*", cfg.text_dir);
if(fexist(str)) {
menu("GRPS");
menu("grps");
return(0); }
bputs(text[GrpLstHdr]);
for(i=0;i<usrgrps && !msgabort();i++) {
......@@ -208,9 +208,9 @@ int sbbs_t::execmsg(csi_t *csi)
case CS_MSG_SHOW_SUBBOARDS:
if(!usrgrps) return(0);
sprintf(str,"%sMENU/SUBS%u.*", cfg.text_dir, usrgrp[curgrp]+1);
sprintf(str,"%smenu/subs%u.*", cfg.text_dir, usrgrp[curgrp]+1);
if(fexist(str)) {
sprintf(str,"SUBS%u",usrgrp[curgrp]+1);
sprintf(str,"subs%u",usrgrp[curgrp]+1);
menu(str);
return(0); }
CRLF;
......
......@@ -69,7 +69,7 @@ bool sbbs_t::lookup_netuser(char *into)
return(false);
strcpy(to,into);
strupr(to);
sprintf(str,"%sQNET/USERS.DAT", cfg.data_dir);
sprintf(str,"%sqnet/users.dat", cfg.data_dir);
if((stream=fnopen(&i,str,O_RDONLY))==NULL)
return(false);
while(!feof(stream)) {
......@@ -208,12 +208,12 @@ bool sbbs_t::netmail(char *into, char *title, long mode)
if(mode&WM_FILE) {
strcpy(fname,subj);
sprintf(str,"%sFILE/%04u.OUT", cfg.data_dir, useron.number);
sprintf(str,"%sfile/%04u.out", cfg.data_dir, useron.number);
_mkdir(str);
strcpy(tmp, cfg.data_dir);
if(tmp[0]=='.') /* Relative path */
sprintf(tmp,"%s%s", cfg.node_dir, cfg.data_dir);
sprintf(str,"%sFILE/%04u.OUT/%s",tmp,useron.number,fname);
sprintf(str,"%sfile/%04u.out/%s",tmp,useron.number,fname);
strcpy(subj,str);
if(fexist(str)) {
bputs(text[FileAlreadyThere]);
......@@ -228,7 +228,7 @@ bool sbbs_t::netmail(char *into, char *title, long mode)
if(mv(str,subj,1))
return(false); }
else { /* Remote */
menu("ULPROT");
menu("ulprot");
mnemonics(text[ProtocolOrQuit]);
strcpy(str,"Q");
for(x=0;x<cfg.total_prots;x++)
......@@ -294,7 +294,7 @@ bool sbbs_t::netmail(char *into, char *title, long mode)
cc_sent=0;
while(1) {
for(i=1;i;i++) {
sprintf(str,"%s%u.MSG", cfg.netmail_dir,i);
sprintf(str,"%s%u.msg", cfg.netmail_dir,i);
if(!fexist(str))
break; }
if(!i) {
......@@ -608,7 +608,7 @@ void sbbs_t::qwktonetmail(FILE *rep, char *block, char *into, uchar fromhub)
FREE(qwkbuf);
smb_freemsgmem(&msg);
return; }
sprintf(smb.file,"%sMAIL", cfg.data_dir);
sprintf(smb.file,"%smail", cfg.data_dir);
smb.retry_time=cfg.smb_retry_time;
if((i=smb_open(&smb))!=0) {
smb_stack(&smb,SMB_STACK_POP);
......@@ -807,7 +807,7 @@ void sbbs_t::qwktonetmail(FILE *rep, char *block, char *into, uchar fromhub)
sprintf(hdr.subj,"%.71s",p);
for(i=1;i;i++) {
sprintf(str,"%s%u.MSG", cfg.netmail_dir,i);
sprintf(str,"%s%u.msg", cfg.netmail_dir,i);
if(!fexist(str))
break; }
if(!i) {
......
......@@ -43,7 +43,7 @@ void sbbs_t::getextdesc(uint dirnum, ulong datoffset, char *ext)
int file;
memset(ext,0,513);
sprintf(str,"%s%s.EXB",cfg.dir[dirnum]->data_dir,cfg.dir[dirnum]->code);
sprintf(str,"%s%s.exb",cfg.dir[dirnum]->data_dir,cfg.dir[dirnum]->code);
if((file=nopen(str,O_RDONLY))==-1)
return;
lseek(file,(datoffset/F_LEN)*512L,SEEK_SET);
......@@ -57,7 +57,7 @@ void sbbs_t::getextdesc(uint dirnum, ulong datoffset, char *ext)
int file;
memset(nulbuf,0,512);
sprintf(str,"%s%s.EXB",cfg.dir[dirnum]->data_dir,cfg.dir[dirnum]->code);
sprintf(str,"%s%s.exb",cfg.dir[dirnum]->data_dir,cfg.dir[dirnum]->code);
if((file=nopen(str,O_WRONLY|O_CREAT))==-1)
return;
lseek(file,0L,SEEK_END);
......@@ -131,7 +131,7 @@ void sbbs_t::openfile(file_t* f)
/************************************/
/* Increment open count in dat file */
/************************************/
sprintf(str1,"%s%s.DAT",cfg.dir[f->dir]->data_dir,cfg.dir[f->dir]->code);
sprintf(str1,"%s%s.dat",cfg.dir[f->dir]->data_dir,cfg.dir[f->dir]->code);