• 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
    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
Name
Last commit
Last update
chooser Loading commit data...
common Loading commit data...
daemon Loading commit data...
data Loading commit data...
docs Loading commit data...
libgdm Loading commit data...
m4 Loading commit data...
pam-extensions Loading commit data...
pam_gdm Loading commit data...
po Loading commit data...
tests Loading commit data...
utils Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
HACKING Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
TODO Loading commit data...
acconfig.h Loading commit data...
acinclude.m4 Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
gdm.doap Loading commit data...