• src/sbbs3/js_user.c

    From rswindell@VERT to CVS commit on Sunday, July 14, 2019 21:53:47
    src/sbbs3 js_user.c 1.110 1.111
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv32210

    Modified Files:
    js_user.c
    Log Message:
    Fix issues with the feature added in rev 1.96 by deuce, Jun 17 2012:
    Setting user.security.flags[1-4], exemptions, or restrictions to a string value would result in unexpected modified values:

    1. The exiting flags were all based on the current value of flags1 (copy/paste
    error it appears)
    2. The set/removed/added flags were all "off-by-one" because str_to_bits()
    treats 'A' as bit-1, not bit-0.

    emailval.js is now using this feature and PSI-Jack reported the "interesting" behavior. :-)


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