1 $NetBSD: patch-ah,v 1.1 2005/07/07 13:30:07 markd Exp $
3 --- gnome-pty-helper/gnome-utmp.c.orig 2004-05-01 19:12:51.000000000 +1200
4 +++ gnome-pty-helper/gnome-utmp.c
5 @@ -242,6 +242,9 @@ write_logout_record (void *data, int utm
6 #if defined(HAVE_UT_UT_ID)
7 strncpy (put.ut_id, ut->ut_id, sizeof (put.ut_id));
9 +#if defined(HAVE_UT_UT_NAME)
10 + strncpy (put.ut_name, ut->ut_name, sizeof (put.ut_name));
13 strncpy (put.ut_line, ut->ut_line, sizeof (put.ut_line));
15 @@ -254,6 +257,10 @@ write_logout_record (void *data, int utm
19 +#if defined(HAVE_UT_UT_NAME)
20 + memset (put.ut_name, 0, sizeof (put.ut_name));
24 update_wtmp (WTMP_OUTPUT_FILENAME, &put);