Subj : Re: TIC files
To   : Andrew Leary
From : Deon George
Date : Mon Sep 17 2018 12:03 am

Hey Andrew,

So this was bugging me - so I made a quick workaround.

--- a/mbfido/tic.c
+++ b/mbfido/tic.c
@@ -116,7 +116,9 @@

    rewinddir(dp);
    while ((de = readdir(dp))) {
-       if ((strlen(de->d_name) == 12) && (strncasecmp(de->d_name+8, ".tic",
4) == 0)) {
+       Syslog('?', "Found file %s", de->d_name);
+       if ((strlen(de->d_name) >= 5) && (strlen(de->d_name) <= 12) &&
(strncasecmp(de->d_name+strlen(de->d_name)-4, ".tic", 4) == 0)) {
+           Syslog('?', "Added file %s", de->d_name);
           stat(de->d_name, &sbuf);
           fill_fdlist(&fdl, de->d_name, sbuf.st_mtime);
       }

I know if the standard is that a tic file needs to be 12 chars in length (I
think it would be good if it was - but I'm not sure that that is the
standard), then it would be good if on a node by node (or global config?)
that you can "override" the standard. "Allow Non Standard TIC [YES|NO]"

What do you think?

...deon

--- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
* Origin: Chinwag | MysticBBS in Docker! (3:633/509.1)