Date: Mon, 6 May 1996 09:04:09 +0200 (MET DST) From: J Wunsch <j@uriah.heep.sax.de> To: freebsd-hackers@freebsd.org (FreeBSD hackers) Cc: max@sfc.wide.ad.jp Subject: Re: date change and wtmp record Message-ID: <199605060704.JAA05118@uriah.heep.sax.de> In-Reply-To: <199605060051.JAA12874@mail.tky007.tth.expo96.ad.jp> from =?us-ascii?Q?Masafumi_NAKANE=2F=3D=3FISO=2D2022=2DJP=3FB=3FGy?= =?us-ascii?Q?RCQ2Y6LDJtSjgbKEI=3D=3F=3D?= at "May 6, 96 09:51:27 am"
next in thread | previous in thread | raw e-mail | index | archive | help
As Masafumi NAKANE/=?ISO-2022-JP?B?GyRCQ2Y6LDJtSjgbKEI=?= wrote: > Hmnmmm, several people responded to my question and told me that > they have '{'. > So, I changed the date to see what happens to my wtmp: > > % last date > date } Mon May 6 09:41 still logged in > date | Mon May 6 09:42 Strange. This part of /usr/src/bin/date/date.c is responsible for the wtmp record: /* set the time */ if (nflag || netsettime(tval)) { logwtmp("|", "date", ""); tv.tv_sec = tval; tv.tv_usec = 0; if (settimeofday(&tv, (struct timezone *)NULL)) err(1, "settimeofday (timeval)"); logwtmp("{", "date", ""); ^^^ } Btw., your ``still logged in'' is also bogus (most likely out of `last' not recognizing the ``}'' as a special token), mine looks like: date { Sun May 5 16:15 date | Sun May 5 16:14 -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605060704.JAA05118>