diff --git a/ChangeLog b/ChangeLog index 7f8216a0..e4af76cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +v1.0.7.9 17-Sep-2018 - Andrew Leary + + 1. Removed the requirement that incoming .TIC files have + exactly 8 character filenames with the .TIC extension. This + will allow processing incoming .TICs from Mystic BBS without + manual intervention. Mystic does not comply with + FTS-5006.001, which specifies that .TIC files be named with + a DOS compatible 8 character filename, a dot, and the 3 + character extension TIC. + v1.0.7.8 07-Sep-2018 - Andrew Leary 1. Fixed reading the origin Net from incoming Type 2+ diff --git a/configure b/configure index efdbd2cb..f4762201 100755 --- a/configure +++ b/configure @@ -2309,7 +2309,7 @@ SUBDIRS="lib mbcico mbfido mbmon mbsebbs mbutils mbnntp mbtask mbsetup unix lang PACKAGE="mbsebbs" MAJOR="1" MINOR="0" -REVISION="7.8" +REVISION="7.9" VERSION="$MAJOR.$MINOR.$REVISION" COPYRIGHT="Copyright (C) 1997-2018 MBSE Development Team, All Rights Reserved" SHORTRIGHT="Copyright (C) 1997-2018 MBSE DevTm" diff --git a/configure.ac b/configure.ac index eaf51cb5..93464c19 100644 --- a/configure.ac +++ b/configure.ac @@ -12,7 +12,7 @@ AC_SUBST(SUBDIRS) PACKAGE="mbsebbs" MAJOR="1" MINOR="0" -REVISION="7.8" +REVISION="7.9" VERSION="$MAJOR.$MINOR.$REVISION" COPYRIGHT="Copyright (C) 1997-2018 MBSE Development Team, All Rights Reserved" SHORTRIGHT="Copyright (C) 1997-2018 MBSE DevTm" diff --git a/mbfido/tic.c b/mbfido/tic.c index e0236619..30a9b19c 100644 --- a/mbfido/tic.c +++ b/mbfido/tic.c @@ -65,7 +65,7 @@ int Tic() DIR *dp; struct dirent *de; struct stat sbuf; - int i, rc = 0, Age; + int i, rc = 0, Age, len; fd_list *fdl = NULL; orphans *opl = NULL, *tmp; time_t Now, Fdate; @@ -99,10 +99,11 @@ int Tic() } while ((de = readdir(dp))) { - if ((strlen(de->d_name) == 12) && (strncasecmp(de->d_name+11, "c", 1) == 0)) { - if ((strncasecmp(de->d_name+8, ".a", 2) == 0) || (strncasecmp(de->d_name+8, ".c", 2) == 0) || - (strncasecmp(de->d_name+8, ".z", 2) == 0) || (strncasecmp(de->d_name+8, ".l", 2) == 0) || - (strncasecmp(de->d_name+8, ".r", 2) == 0) || (strncasecmp(de->d_name+8, ".0", 2) == 0)) { + len = strlen(de->d_name); + if ((len >= 5) && (strncasecmp(de->d_name+(len-1), "c", 1) == 0)) { + if ((strncasecmp(de->d_name+(len-4), ".a", 2) == 0) || (strncasecmp(de->d_name+(len-4), ".c", 2) == 0) || + (strncasecmp(de->d_name+(len-4), ".z", 2) == 0) || (strncasecmp(de->d_name+(len-4), ".l", 2) == 0) || + (strncasecmp(de->d_name+(len-4), ".r", 2) == 0) || (strncasecmp(de->d_name+(len-4), ".0", 2) == 0)) { if (checkspace(inbound, de->d_name, UNPACK_FACTOR)) { if ((unpack(de->d_name)) != 0) { WriteError("Error unpacking %s", de->d_name); @@ -116,7 +117,8 @@ int Tic() rewinddir(dp); while ((de = readdir(dp))) { - if ((strlen(de->d_name) == 12) && (strncasecmp(de->d_name+8, ".tic", 4) == 0)) { + len = strlen(de->d_name); + if ((len >= 5) && (strncasecmp(de->d_name+(len-4), ".tic", 4) == 0)) { stat(de->d_name, &sbuf); fill_fdlist(&fdl, de->d_name, sbuf.st_mtime); }