Updated Hydra and Binkp for log/short filenames

This commit is contained in:
Michiel Broek 2001-12-12 22:46:25 +00:00
parent c553fc3489
commit 558c79c6bf
3 changed files with 16 additions and 6 deletions

View File

@ -4334,9 +4334,13 @@ v0.33.19 26-Oct-2001
Filerequest responses are now created with long filenames. Filerequest responses are now created with long filenames.
When sending files, if the remote has the FNC link flag, the When sending files, if the remote has the FNC link flag, the
filename is mangled to DOS 8.3 format when transmitted. filename is mangled to DOS 8.3 format when transmitted.
File request response messages now displayy the long and File request response messages now display the long and
short filename in the reply. short filename in the reply.
Filerequest resonse messages now have a random quote added. Filerequest response messages now have a random quote added.
The binkp driver now sends 8.3 mangled filenames if that
option is set for the remote node in the setup.
The hydra driver now sends 8.3 mangled filenames and long
filenames as specified in the specs.
mbtask: mbtask:
Changed to handle the External Doors flag in the lastcaller Changed to handle the External Doors flag in the lastcaller

View File

@ -125,6 +125,12 @@ int binkp(int role)
} }
eff_remote = remote; eff_remote = remote;
/*
* If remote doesn't have the 8.3 flag set, allow long filenames.
*/
if (!nodes.FNC)
remote_flags &= ~SESSION_FNC;
tosend = create_filelist(eff_remote, nonhold_mail, 0); tosend = create_filelist(eff_remote, nonhold_mail, 0);
request = create_freqlist(remote); request = create_freqlist(remote);

View File

@ -1,8 +1,7 @@
/***************************************************************************** /*****************************************************************************
* *
* File ..................: mbcico/hydra.c * $Id$
* Purpose ...............: Fidonet mailer * Purpose ...............: Fidonet mailer - Hydra protocol driver
* Last modification date : 07-Aug-2001
* Remark ................: See below for more copyright details and credits. * Remark ................: See below for more copyright details and credits.
* *
***************************************************************************** *****************************************************************************
@ -871,7 +870,8 @@ int hydra_batch(int role, file_list *to_send)
/* /*
* convert file name to DOS-format * convert file name to DOS-format
*/ */
outbuf = xtodos(to_send->remote); outbuf = xstrcpy(to_send->remote);
name_mangle(outbuf);
strcpy(txbuf + txlen, outbuf); strcpy(txbuf + txlen, outbuf);
free(outbuf); free(outbuf);
for(; txbuf[txlen]; txlen++) { for(; txbuf[txlen]; txlen++) {