Update .TIC file logic to use "Lfile" keyword instead of "Fullname" when

creating .TIC files.  Both will continue to be accepted when reading incoming
.TIC files.  This change should allow better compatibility with HTick, as well
as compliance with FSP-1039.001.
This commit is contained in:
Andrew Leary
2015-11-22 13:11:44 -05:00
parent 68d395c9f2
commit fc7243e7a8
3 changed files with 5 additions and 2 deletions

View File

@@ -170,11 +170,11 @@ void ForwardFile(fidoaddr Node, fa_list *sbl)
if ((TIC.PassThru) || (TIC.SendOrg)) {
fprintf(fp, "File %s\r\n", TIC.TicIn.File);
if (strlen(TIC.TicIn.FullName))
fprintf(fp, "Fullname %s\r\n", TIC.TicIn.FullName);
fprintf(fp, "Lfile %s\r\n", TIC.TicIn.FullName);
} else {
fprintf(fp, "File %s\r\n", TIC.NewFile);
if (strlen(TIC.NewFullName))
fprintf(fp, "Fullname %s\r\n", TIC.NewFullName);
fprintf(fp, "Lfile %s\r\n", TIC.NewFullName);
}
fprintf(fp, "Size %d\r\n", (int)(TIC.FileSize));
fprintf(fp, "Desc %s\r\n", TIC.TicIn.Desc);

View File

@@ -288,6 +288,9 @@ int LoadTic(char *inb, char *tfn, orphans **opl)
} else if (strncasecmp(Temp, "fullname ", 9) == 0) {
strncpy(TIC.TicIn.FullName, Temp+9, 80);
} else if (strncasecmp(Temp, "lfile ", 6) == 0) {
strncpy(TIC.TicIn.FullName, Temp+6, 80);
} else if (strncasecmp(Temp, "created ", 8) == 0) {
strncpy(TIC.TicIn.Created, Temp+8, 80);