Skip to content
  • Jason Pleau's avatar
    daemon/gdm-session-record.c: open/close the utmp database · 086d68f2
    Jason Pleau authored and Ray Strode's avatar Ray Strode committed
    pututxline() was used without first opening the utxmp database and
    without closing it, preventing the logout entry from being fully
    committed.
    
    This caused the number of logged-in users to increment after each login,
    as logging out did not correctly remove the user login record from utmp.
    
    This commit wraps pututxline() between setutxent() and endutxent(),
    making sure that the login/logout operation are fully flushed.
    
    Fixes #381
    086d68f2