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

Added support for stdio transfer programs (e.g. sz/rz) on Unix.

parent bb866aaf
No related branches found
No related tags found
No related merge requests found
......@@ -191,7 +191,12 @@ int sbbs_t::protocol(char *cmdline, int cd)
sprintf(msg,"Transferring %s",cmdline);
spymsg(msg);
sys_status|=SS_FILEXFER;
i=external(cmdline,EX_OUTL,p);
i=external(cmdline
,EX_OUTL
#ifdef __unix__ /* file xfer progs use stdio on Unix */
|EX_INR|EX_OUTR
#endif
,p);
sys_status&=~SS_FILEXFER;
if(online==ON_REMOTE)
rioctl(IOFB);
......
......@@ -965,7 +965,11 @@ int sbbs_t::exec_misc(csi_t* csi, char *path)
if(i<cfg.total_prots)
if(external(cmdstr(j==SEND_FILE_VIA
? cfg.prot[i]->dlcmd : cfg.prot[i]->ulcmd,str,str,buf)
,EX_OUTL)==0)
,EX_OUTL
#ifdef __unix__ /* file xfer progs use stdio on Unix */
|EX_INR|EX_OUTR
#endif
)==0)
csi->logic=LOGIC_TRUE;
return(0);
case SEND_FILE_VIA_VAR:
......@@ -983,7 +987,11 @@ int sbbs_t::exec_misc(csi_t* csi, char *path)
if(i<cfg.total_prots)
if(external(cmdstr(j==SEND_FILE_VIA_VAR
? cfg.prot[i]->dlcmd : cfg.prot[i]->ulcmd,*pp,*pp,buf)
,EX_OUTL)==0)
,EX_OUTL
#ifdef __unix__ /* file xfer progs use stdio on Unix */
|EX_INR|EX_OUTR
#endif
)==0)
csi->logic=LOGIC_TRUE;
return(0);
......
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