From owner-freebsd-hackers Mon May 6 00:10:12 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id AAA16738 for hackers-outgoing; Mon, 6 May 1996 00:10:12 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id AAA16689 for ; Mon, 6 May 1996 00:09:56 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id JAA11892; Mon, 6 May 1996 09:08:12 +0200 Received: by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id JAA03212; Mon, 6 May 1996 09:08:10 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id JAA05118; Mon, 6 May 1996 09:04:10 +0200 (MET DST) From: J Wunsch Message-Id: <199605060704.JAA05118@uriah.heep.sax.de> Subject: Re: date change and wtmp record To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Mon, 6 May 1996 09:04:09 +0200 (MET DST) Cc: max@sfc.wide.ad.jp Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) 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" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL15 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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. ;-)