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

Changed protocol 'cd' arg to bool.

Changed bi-dir xfer commands to chdir to the temp_dir.
parent 5e5f2f79
No related branches found
No related tags found
No related merge requests found
......@@ -166,7 +166,7 @@ void sbbs_t::batchmenu()
sprintf(str,"%sBATCHDN.LST",cfg.node_dir);
sprintf(tmp2,"%sBATCHUP.LST",cfg.node_dir);
start=time(NULL);
protocol(cmdstr(cfg.prot[xfrprot]->bicmd,str,tmp2,NULL),0);
protocol(cmdstr(cfg.prot[xfrprot]->bicmd,str,tmp2,NULL),true);
end=time(NULL);
for(i=0;i<batdn_total;i++)
if(cfg.dir[batdn_dir[i]]->seqdev) {
......@@ -315,7 +315,7 @@ void sbbs_t::batchmenu()
if(online==ON_REMOTE) {
delfiles(cfg.temp_dir,ALLFILES);
start=time(NULL);
protocol(cmdstr(cfg.prot[xfrprot]->batulcmd,str,nulstr,NULL),1);
protocol(cmdstr(cfg.prot[xfrprot]->batulcmd,str,nulstr,NULL),true);
end=time(NULL);
if(!(cfg.dir[xfrdir]->misc&DIR_ULTIME))
starttime+=end-start;
......@@ -486,7 +486,7 @@ void sbbs_t::start_batch_download()
thisnode.action=action;
putnodedat(cfg.node_num,&thisnode); /* calculate ETA */
start=time(NULL);
protocol(cmdstr(cfg.prot[xfrprot]->batdlcmd,str,nulstr,NULL),0);
protocol(cmdstr(cfg.prot[xfrprot]->batdlcmd,str,nulstr,NULL),false);
end=time(NULL);
batch_download(xfrprot);
if(batdn_total)
......
......@@ -165,7 +165,7 @@ void sbbs_t::notdownloaded(ulong size, time_t start, time_t end)
/****************************************************************************/
/* Handles start and stop routines for transfer protocols */
/****************************************************************************/
int sbbs_t::protocol(char *cmdline, int cd)
int sbbs_t::protocol(char *cmdline, bool cd)
{
char protlog[256],*p;
char msg[256];
......
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