home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 1840 
 Deon George to Andrew Leary 
 Re: TIC files 
 17 Sep 18 00:03:30 
 
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)

<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca