• src/sbbs3/fidopkt.h pktdump.c sbbsecho.c

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sun Nov 29 23:47:34 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/37da54f48ee3cc8dccbac0b6
    Modified Files:
    src/sbbs3/fidopkt.h pktdump.c sbbsecho.c
    Log Message:
    SBBSecho/PktDump: ignore bit 15 when validating the capability word

    FSC-0039.004 says bit 15 of the packet header's capability word and of
    its byte-swapped validation copy is masked before the two are compared,
    since that bit is reserved to indicate whether the sender also accepts
    UseNet RFC-822 bundles. SBBSecho and PktDump compared all 16 bits, so a
    sender setting bit 15 in only one of the two words would have had its
    Type-2+ header ignored and been read as a plain Type 2 (no point or
    zone information). FMail masks the bit as the spec says.

    Both programs now use a shared fpkthdr_cw_type2plus() in fidopkt.h.
    Every header accepted before is still accepted.

    Fixes #1434

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Mon Nov 30 22:07:46 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/ee6a293388ce1c4036e37c44
    Modified Files:
    src/sbbs3/fidopkt.h pktdump.c sbbsecho.c
    Log Message:
    SBBSecho/PktDump: keep all of a 20-character DateTime

    f8bebadf2b (only-4-lace, 2026-11-29) accepted a packed-message DateTime
    of 20 characters with no NUL, but SBBSecho then copied it into the
    20-byte (NUL-terminated) hdr.time, and PktDump terminated it in place
    before writing a recovered packet, so the last character was lost: CNet's
    "15 Dec 125 18:01:00" was imported, forwarded and recovered as
    "15 Dec 125 18:01:0". The other form seen, a standard date with a
    trailing space instead of the NUL, lost only the space.

    A new fpkdmsg_time_normalize() in fidopkt.h rewrites a 20-character
    DateTime in the standard "DD Mon YY HH:MM:SS" form when it parses as
    one, else removes trailing spaces and truncates. PktDump still displays
    the DateTime as received.

    20 characters followed by a NUL could be a 21-byte variable-length
    DateTime or an unterminated one followed by an empty toUserName; it is
    still read as the latter, since no software is known to write the
    former. Both programs now say so when they see one.

    Also, fmsgtime() read a date with no time ("01 Jan 86") as a SEAdog
    format date, day 0 of December 2000, since 10b0a7426e (sword-40-till, 2026-11-29). A SEAdog date starts with a day name, so it matches none of
    the regular format's fields; fall back to it only when fewer than three
    (day, month, year) match.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net