TIC attaches now 8.3 filenames

This commit is contained in:
Michiel Broek 2002-11-23 18:52:46 +00:00
parent 5cf51d1157
commit b1ac22bf97
2 changed files with 11 additions and 4 deletions

View File

@ -30,7 +30,8 @@ v0.35.06
the wrong filetime in the files database. The mbfile check
command would detect and correct this.
TIC files added to the bbs will now also have a 8.3 hard link.
With TIC file attaches, the filename attached is the 8.3 name.
mbcico:
With filetransfer errors, the attempts counter was not
increased.

View File

@ -102,12 +102,18 @@ void ForwardFile(fidoaddr Node, fa_list *sbl)
/*
* Create the full filename
*/
if (TIC.SendOrg) {
if (TIC.PassThru || TIC.SendOrg) {
sprintf(fwdfile, "%s/%s", TIC.Inbound, TIC.RealName);
subject = xstrcpy(TIC.RealName);
} else {
sprintf(fwdfile, "%s/%s", TIC.BBSpath, TIC.NewName);
subject = xstrcpy(TIC.NewName);
/*
* Make sure the file attach is the 8.3 filename
*/
temp = xstrcpy(TIC.NewName);
name_mangle(temp);
sprintf(fwdfile, "%s/%s", TIC.BBSpath, temp);
subject = xstrcpy(temp);
free(temp);
}
flavor = 'f';