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:
parent
68d395c9f2
commit
fc7243e7a8
@ -170,11 +170,11 @@ void ForwardFile(fidoaddr Node, fa_list *sbl)
|
|||||||
if ((TIC.PassThru) || (TIC.SendOrg)) {
|
if ((TIC.PassThru) || (TIC.SendOrg)) {
|
||||||
fprintf(fp, "File %s\r\n", TIC.TicIn.File);
|
fprintf(fp, "File %s\r\n", TIC.TicIn.File);
|
||||||
if (strlen(TIC.TicIn.FullName))
|
if (strlen(TIC.TicIn.FullName))
|
||||||
fprintf(fp, "Fullname %s\r\n", TIC.TicIn.FullName);
|
fprintf(fp, "Lfile %s\r\n", TIC.TicIn.FullName);
|
||||||
} else {
|
} else {
|
||||||
fprintf(fp, "File %s\r\n", TIC.NewFile);
|
fprintf(fp, "File %s\r\n", TIC.NewFile);
|
||||||
if (strlen(TIC.NewFullName))
|
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, "Size %d\r\n", (int)(TIC.FileSize));
|
||||||
fprintf(fp, "Desc %s\r\n", TIC.TicIn.Desc);
|
fprintf(fp, "Desc %s\r\n", TIC.TicIn.Desc);
|
||||||
|
@ -289,6 +289,9 @@ int LoadTic(char *inb, char *tfn, orphans **opl)
|
|||||||
} else if (strncasecmp(Temp, "fullname ", 9) == 0) {
|
} else if (strncasecmp(Temp, "fullname ", 9) == 0) {
|
||||||
strncpy(TIC.TicIn.FullName, Temp+9, 80);
|
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) {
|
} else if (strncasecmp(Temp, "created ", 8) == 0) {
|
||||||
strncpy(TIC.TicIn.Created, Temp+8, 80);
|
strncpy(TIC.TicIn.Created, Temp+8, 80);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user