From fc7243e7a82f55cb1e217cbc5a5607c9eeeeca37 Mon Sep 17 00:00:00 2001 From: Andrew Leary Date: Sun, 22 Nov 2015 13:11:44 -0500 Subject: [PATCH] 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. --- CRON.sh | 0 mbfido/forward.c | 4 ++-- mbfido/tic.c | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) mode change 100644 => 100755 CRON.sh diff --git a/CRON.sh b/CRON.sh old mode 100644 new mode 100755 diff --git a/mbfido/forward.c b/mbfido/forward.c index 2cc971fa..e11bb2d9 100644 --- a/mbfido/forward.c +++ b/mbfido/forward.c @@ -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); diff --git a/mbfido/tic.c b/mbfido/tic.c index fa05a2e1..e0236619 100644 --- a/mbfido/tic.c +++ b/mbfido/tic.c @@ -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);