This is the mail archive of the
glibc-cvs@sources.redhat.com
mailing list for the glibc project.
libc/login tst-utmp.c
- From: roland at sources dot redhat dot com
- To: glibc-cvs at sources dot redhat dot com
- Date: 26 Aug 2002 11:36:08 -0000
- Subject: libc/login tst-utmp.c
CVSROOT: /cvs/glibc
Module name: libc
Changes by: roland@sources.redhat.com 2002-08-26 04:36:08
Modified files:
login : tst-utmp.c
Log message:
2002-07-06 Bruno Haible <bruno@clisp.org>
* login/tst-utmp.c (simulate_login): Don't leave garbage after the
nul byte in entry[n].ut_user.
(simulate_logout): Likewise.
* login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
_HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
existence of corresponding members of 'struct utmp'.
* login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
!_HAVE_UT_TYPE.