[gdm] session-record: don't print that we are updating btmp if not supported
- From: Antoine Jacoutot <ajacoutot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] session-record: don't print that we are updating btmp if not supported
- Date: Fri, 11 Oct 2013 06:12:09 +0000 (UTC)
commit 23d6337f2b4e5235305f9a3c203c416e7516a47e
Author: Antoine Jacoutot <antoine mtier org>
Date: Tue Aug 27 10:46:55 2013 +0200
session-record: don't print that we are updating btmp if not supported
While running with debug enabled, do not print that we are updating
btmp if we do not HAVE_UPDWTMPX or HAVE_UPDWTMP.
daemon/gdm-session-record.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-session-record.c b/daemon/gdm-session-record.c
index 845b28d..1585ef5 100644
--- a/daemon/gdm-session-record.c
+++ b/daemon/gdm-session-record.c
@@ -363,9 +363,11 @@ gdm_session_record_failed (GPid session_pid,
record_set_host (&session_record, x11_display_name, host_name);
record_set_line (&session_record, display_device, x11_display_name);
+#if defined(HAVE_UPDWTMPX) || defined(HAVE_UPDWTMP)
/* Handle btmp */
g_debug ("Writing btmp failed session attempt record to "
GDM_BAD_SESSION_RECORDS_FILE);
+#endif
#if defined(HAVE_UPDWTMPX)
updwtmpx (GDM_BAD_SESSION_RECORDS_FILE, &session_record);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]