--- a/daemon/slave.c 2008-12-11 01:25:43.000000000 +0300 +++ a/daemon/slave.c 2009-06-11 20:12:00.000000000 +0400 @@ -4312,7 +4312,7 @@ gdm_slave_write_utmp_wtmp_record (GdmDis #endif #if defined(HAVE_UT_UT_ID) - strncpy (record.ut_id, d->name, sizeof (record.ut_id)); + strncpy (record.ut_id, d->name + ( strlen ( d->name ) - 4 ), sizeof (record.ut_id)); gdm_debug ("utmp-wtmp: Using id %*s", (int) sizeof (record.ut_id), record.ut_id);