• Jason Pleau's avatar
    daemon/gdm-session-record.c: open/close the utmp database · 086d68f2
    Jason Pleau authored
    pututxline() was used without first opening the utxmp database and
    without closing it, preventing the logout entry from being fully
    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
gdm-session-record.c 9.5 KB