229f76c Ticket 49568 - Fix integer overflow on 32bit platforms

Authored and Committed by mreynolds 2 years ago
    Ticket 49568 - Fix integer overflow on 32bit platforms
    
    Bug Description:  When generating the nsState information for the
                      uniqueid generator the timestamp was overflowing
                      on arm(and possibly other 32 bit platforms).  This
                      then broke the upgrade setup code when 50fixNsState.pl
                      was ran.  50fixNsState script also incorrectly converts
                      64bit nsState value to 32 bit
    
    Fix Description:  Cast the current time (time_t) to the proper type when
                      when calculating the time since epoch.  Also do not
                      convert nsState during upgrade if it is already 64bit
                      value.
    
    https://pagure.io/389-ds-base/issue/49568
    
    Reviewed by: firstyear(Thanks!)
    
    (cherry picked from commit 774ee3e42da9394fb8f3695e1545ed9129786931)
    
        
file modified
+1 -1