[1412] in testers
rt 7.2G: dm
daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Thu Dec 13 12:30:55 1990
Date: Thu, 13 Dec 90 12:30:35 -0500
From: "Jonathan I. Kamens" <jik@pit-manager.MIT.EDU>
To: testers@ATHENA.MIT.EDU
System name: pit-manager
Type and version: RTPC-ROMPC 7.2G
Display type: apa16
megapel
What were you trying to do?
Use "ac" to find out how many hours I've been logged in.
What's wrong:
When the display manager puts a logout entry in /usr/adm/wtmp,
it only puts a null in the first character of the ut_name
field, rather than filling the field with nulls. The field is
supposed to be filled with nulls. That's what /etc/init does
when it puts entries in wtmp, and that's what ac expects.
What should have happened:
See above. Changing this line:
utmp.ut_name[0] = 0;
to this:
bzero(utmp.ut_name, sizeof utmp.ut_name);
should do the trick.
Please describe any relevant documentation references:
/source/athena/etc.athena/xdm/dm/dm.c
jik