diff options
author | Paul Szabo <psz@maths.usyd.edu.au> | 2015-08-14 14:59:56 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2015-08-14 15:12:54 -0400 |
commit | 4c282cd6625f385092dce2799efe7d7915202afd (patch) | |
tree | 4aa0454b84d039da8b8eb2d801318d347e3f24ac | |
parent | ab058ead4e22abbc8809b9d511a357915070b090 (diff) | |
download | gdm-4c282cd6625f385092dce2799efe7d7915202afd.tar.gz |
session-record: write ut_line for remote logins too
We currently only write out ut_line for local logins.
This commit makes sure it gets written out for remote
logins as well.
https://bugzilla.gnome.org/show_bug.cgi?id=599103
-rw-r--r-- | daemon/gdm-session-record.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/daemon/gdm-session-record.c b/daemon/gdm-session-record.c index df6f5bf3..32933ef0 100644 --- a/daemon/gdm-session-record.c +++ b/daemon/gdm-session-record.c @@ -174,8 +174,7 @@ record_set_line (UTMP *u, strncpy (u->ut_line, display_device + strlen ("/dev/"), sizeof (u->ut_line)); - } else if (x11_display_name != NULL - && g_str_has_prefix (x11_display_name, ":")) { + } else if (x11_display_name != NULL) { strncpy (u->ut_line, x11_display_name, sizeof (u->ut_line)); |