• Follow-up on "Some A48 issues (summed up)" (as per 07/09/2022)

    From Björn Wiberg@2:201/137 to g00r00 on Mon Jul 11 21:13:00 2022
    Hello g00r00!

    Thank you for your message!

    On 11 Jul 2022, g00r00 said the following...
    * I edited resetpw.ini and emailval.ini in the data directory (also t copying to the theme's text directory), but it appears that Mystic doesn't use the INI files just yet? (I got the "old" hard-coded messa
    Its supposed to be working.

    I checked with strace, and it appears that it only checks the text directory of the theme and that of the fallback theme (in my case, the "default" theme) for the INI file, but not the "global" data directory (/home/bbs/mystic/data/resetpw.ini):

    write(1, "\33[0;1;30m\33[0;1;33mSending password reset e-mail... \33[?25l", 57) = 57
    access("/home/bbs/mystic/themes/scbbs_en/text/resetpw.ini", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/bbs/mystic/themes/default/text/resetpw.ini", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/bbs/mystic/themes/scbbs_en/text/resetpw.ini", F_OK) = -1 ENOENT (No such file or directory)
    gettimeofday({tv_sec=1657565833, tv_usec=72114}, NULL) = 0

    (cut)

    write(28, "2022.07.11 20:57:14 SMTP R:250 HELP\n", 36) = 36
    close(28) = 0
    open("resetpw.ini", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)

    (cut)

    open("/home/bbs/mystic/logs/node2.log", O_WRONLY|O_APPEND|O_LARGEFILE) = 28 write(28, "2022.07.11 20:57:14 SMTP S:MAIL FROM:<sysop@scbbs.nsupdate.info>\n", 65) = 65

    (cut)

    I'm not sure what the CWD is for the last open() there, but suspect it might be the Mystic main directory (/home/bbs/mystic).

    After copying resetpw.ini to /home/bbs/mystic/themes/scbbs_en/text, it manages to find it:

    write(1, "\33[0;1;30m\33[0;1;33mSending password reset e-mail... \33[?25l", 57) = 57
    access("/home/bbs/mystic/themes/scbbs_en/text/resetpw.ini", F_OK) = 0

    ...but still fails to open it:

    write(28, "2022.07.11 21:05:46 SMTP R:250 HELP\n", 36) = 36
    close(28) = 0
    open("resetpw.ini", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)

    So perhaps there are two things that would need to be adjusted -- that it should check the "global" data directory as a fallback (before resorting to the hard-coded message in MIS), and that it should attempt to open the file it determined to use using its full path?

    menu command: If the command list is already full (25 entries), pasti

    I'll have it pop up a note that says "max items reached" or something along those lines.

    Sounds great! That will do just fine.

    Also you can stack actual menu commands too so for example if you
    reached the menu action limit for a specific hotkey you can create
    another one with a blank text under it with the same hotkey, and Mystic will execute the action lists for both.

    Thanks for the tip! Yes, I have a bunch of those (although not for a certain hotkey, but rather for FIRSTCMD) in the prelogin menu, and that's actually where I had to split one of the steps during login (e-mail validation) further because I exceeded the limit. :)

    But no harm done, as that menu already contains many FIRSTCMDs for the different steps/checks performed during login. :)

    * I have Disable Time: No and a security level (s255) which has Time Day: 9999. Do Shell events with Warning: x (minutes) really kick the user out? I would expect Mystic to trim the available time (9999

    It probably doesn't when you disable the entire time system I would have to check into that. I am pressed for time right now so I don't have
    time to take a look to refresh my memory.

    No problem!

    Although "Disable Time: No" means time accounting enabled, right?

    I actually re-enabled it a while ago as I thought that disabling it was the cause of users not getting kicked out. But it appears that it doesn't matter if it's enabled or not -- users still don't seem to get kicked out at event time.

    So that might be something to test whenever you get time. :)

    But this entire area could use some work!

    Actually it works just fine otherwise!

    Again, thanks a lot!

    Best regards
    Bj”rn

    --- Mystic BBS v1.12 A48 2022/07/11 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)
  • From g00r00@1:129/215 to Björn Wiberg on Mon Jul 11 16:07:22 2022
    * FTP uploads appear to corrupt the file base. If I scroll
    This turned out to be Linux-specific so I had to set up some tests there. The 7/11 release should fix this.

    Thanks a lot! Works like a charm now!

    Thanks for letting me know!

    BTW for you guys who upgrade earlier today I created a new 7/11 build with some new changes. I actually built a few today but I am done for the day so if you have the older 7/11 you might want to grab the latest.

    ... My reality check just bounced

    --- Mystic BBS v1.12 A48 2022/07/11 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From g00r00@1:129/215 to Björn Wiberg on Mon Jul 11 16:14:20 2022
    I checked with strace, and it appears that it only checks the text directory of the theme and that of the fallback theme (in my case, the "default" theme) for the INI file, but not the "global" data directory (/home/bbs/mystic/data/resetpw.ini):

    Thanks this was really helpful. I was able to see the problem and fix it up for the next build.

    open("resetpw.ini", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or

    This is the problem. Its supposed to be opening in the calculated directory + the filename but its accidentally using just the filename. I'll have that fixed in the next build.

    Oddly enough when I tested it, it worked becaue I accidentally had a copy of the .ini file in my root Mystic directory lol.

    ... Confucius say: "Its stuffy inside fortune cookie"

    --- Mystic BBS v1.12 A48 2022/07/11 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)