Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 273386
Collapse All | Expand All

(-)a/daemon/slave.c (-1 / +1 lines)
Lines 4312-4318 gdm_slave_write_utmp_wtmp_record (GdmDis Link Here
4312
#endif
4312
#endif
4313
4313
4314
#if defined(HAVE_UT_UT_ID)
4314
#if defined(HAVE_UT_UT_ID)
4315
	strncpy (record.ut_id, d->name, sizeof (record.ut_id));
4315
	strncpy (record.ut_id, d->name + ( strlen ( d->name ) - 4 ), sizeof (record.ut_id));
4316
	gdm_debug ("utmp-wtmp: Using id %*s",
4316
	gdm_debug ("utmp-wtmp: Using id %*s",
4317
	       (int) sizeof (record.ut_id),
4317
	       (int) sizeof (record.ut_id),
4318
	       record.ut_id);
4318
	       record.ut_id);

Return to bug 273386