1. 12 Jun, 2018 1 commit
    • 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
  2. 10 Oct, 2017 1 commit
  3. 14 Aug, 2015 4 commits
  4. 01 Jul, 2015 1 commit
  5. 02 Apr, 2015 1 commit
  6. 11 Oct, 2013 1 commit
  7. 06 Sep, 2012 1 commit
  8. 17 Jul, 2009 1 commit
  9. 19 Nov, 2007 1 commit
    • William Jon McCann's avatar
      Fix build on FreeBSD. Patch from: Joe Marcus Clarke <marcus@freebsd.org> · 5420f09b
      William Jon McCann authored
      2007-11-19  William Jon McCann  <mccann@jhu.edu>
      
      	* common/gdm-common-unknown-origin.h:
      	* configure.ac:
      	* daemon/Makefile.am:
      	* daemon/gdm-greeter-session.c:
      	* daemon/gdm-server.c: (gdm_server_class_init):
      	* daemon/gdm-session-record.c: (record_set_username),
      	(gdm_session_record_login), (gdm_session_record_logout):
      	* daemon/gdm-session-worker-job.c:
      	(gdm_session_worker_job_class_init):
      	* daemon/gdm-slave-proxy.c: (spawn_slave):
      	* daemon/main.c:
      	* gui/settings-daemon/plugins/xsettings/gdm-xsettings-manager.c:
      	* gui/simple-chooser/gdm-host-chooser-widget.c: (do_ping):
      	Fix build on FreeBSD.
      	Patch from: Joe Marcus Clarke  <marcus@freebsd.org>
      
      
      svn path=/trunk/; revision=5515
      5420f09b
  10. 30 Oct, 2007 1 commit
    • William Jon McCann's avatar
      Be careful about sending NULLs over DBus and etc. · 0f4f78fd
      William Jon McCann authored
      2007-10-30  William Jon McCann  <mccann@jhu.edu>
      
      	* daemon/gdm-session-direct.c: (send_begin_verification),
      	(send_begin_verification_for_user), (open_ck_session):
      	* daemon/gdm-session-record.c: (record_set_host),
      	(record_set_line):
      	Be careful about sending NULLs over DBus and etc.
      
      
      svn path=/trunk/; revision=5461
      0f4f78fd
  11. 24 Oct, 2007 1 commit
  12. 19 Oct, 2007 2 commits
    • Brian Cameron's avatar
      Some trivial fixes. The #ifdef GETUTXENT got lost in the logout function. · 21b77a8c
      Brian Cameron authored
      2007-10-18  Brian Cameron  <brian.cameron@sun.com>
      
              * daemon/gdm-session-record.c: Some trivial fixes.  The #ifdef
                GETUTXENT got lost in the logout function.  It should match the
                login function.  Also make sure to set both tv_sec and tv_usec when
                doing logout.
      
      svn path=/trunk/; revision=5387
      21b77a8c
    • William Jon McCann's avatar
      Try to reduce the complexity of the utmp/wtmp recording code. · 365092a4
      William Jon McCann authored
      2007-10-18  William Jon McCann  <mccann@jhu.edu>
      
      	* daemon/gdm-session-record.c: (record_set_username),
      	(record_set_timestamp), (record_set_pid), (record_set_id),
      	(record_set_host), (record_set_line), (gdm_session_record_login),
      	(gdm_session_record_logout), (gdm_session_record_failed):
      	* daemon/gdm-session-record.h:
      	* daemon/gdm-session.c:
      	(gdm_session_user_verification_error_handler),
      	(gdm_session_started_handler), (gdm_session_startup_error_handler),
      	(gdm_session_exited_handler), (gdm_session_close):
      	Try to reduce the complexity of the utmp/wtmp recording code.
      
      
      
      svn path=/trunk/; revision=5385
      365092a4
  13. 18 Oct, 2007 3 commits
    • William Jon McCann's avatar
      Make username const. (gdm_session_record_write): not static. · 63cdd7f4
      William Jon McCann authored
      2007-10-18  William Jon McCann  <mccann@jhu.edu>
      
      	* daemon/gdm-session-record.c (gdm_session_write_record):
      	Make username const.
      	(gdm_session_record_write): not static.
      
      
      svn path=/trunk/; revision=5383
      63cdd7f4
    • William Jon McCann's avatar
      Make username const. · 40c7f837
      William Jon McCann authored
      2007-10-18  William Jon McCann  <mccann@jhu.edu>
      
      	* daemon/gdm-session-record.c (gdm_session_write_record):
      	Make username const.
      
      
      svn path=/trunk/; revision=5382
      40c7f837
    • William Jon McCann's avatar
      Separate session recording writing stuff. · 3451d349
      William Jon McCann authored
      2007-10-18  William Jon McCann  <mccannwj@acsnb1>
      
      	* daemon/Makefile.am:
      	* daemon/gdm-session-record.c: (gdm_session_write_record):
      	* daemon/gdm-session-record.h:
      	* daemon/gdm-session.c:
      	(gdm_session_user_verification_error_handler),
      	(gdm_session_started_handler), (gdm_session_startup_error_handler),
      	(gdm_session_exited_handler), (gdm_session_close):
      	Separate session recording writing stuff.
      
      
      svn path=/trunk/; revision=5380
      3451d349