TIP: Click on subject to list as thread! ANSI
echo: mbse
to: Andrew Leary
from: Deon George
date: 2018-09-17 00:03:00
subject: Re: TIC files

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)

SOURCE: echomail via QWK@dmine.net

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.