v1.0.7.12 - Fix bad/orphan .TIC support to support .TIC files with names longer

than 8 characters; fix empty partial files left in temporary inbound when a
remote Binkp site attempts to send a 0 byte file.
This commit is contained in:
Andrew Leary
2019-03-15 07:30:23 -04:00
parent 0ab1656370
commit c67670029a
8 changed files with 32 additions and 10 deletions

View File

@@ -53,7 +53,7 @@ void fill_orphans(orphans **qal, char *TicName, char *Area, char *FileName, int
tmp = (orphans *)malloc(sizeof(orphans));
tmp->next = *qal;
snprintf(tmp->TicName, 13, TicName);
snprintf(tmp->TicName, 51, TicName);
snprintf(tmp->Area, 21, Area);
snprintf(tmp->FileName, 81, FileName);
tmp->Orphaned = Orphaned;

View File

@@ -8,7 +8,7 @@
*/
typedef struct _orphans {
struct _orphans *next; /* Linked list */
char TicName[13]; /* TIC filename */
char TicName[51]; /* TIC filename */
char Area[21]; /* TIC area */
char FileName[81]; /* TIC filename */
unsigned Orphaned : 1; /* Real orphaned file */

View File

@@ -227,7 +227,7 @@ int LoadTic(char *inb, char *tfn, orphans **opl)
memset(&T_File, 0, sizeof(T_File));
snprintf(TIC.Inbound, PATH_MAX, "%s", inb);
strncpy(TIC.TicName, tfn, 12);
strncpy(TIC.TicName, tfn, 50);
chdir(inb);
if ((tfp = fopen(tfn, "r")) == NULL) {

View File

@@ -35,7 +35,7 @@ typedef struct _tic_in {
typedef struct _TICrec {
char Inbound[PATH_MAX+1]; /* Inbound directory */
char TicName[13]; /* Name of .TIC file */
char TicName[51]; /* Name of .TIC file */
Tic_in TicIn; /* Original TIC record */
fidoaddr OrgAka; /* Origin address */
fidoaddr Aka; /* An address ? */