From owner-freebsd-hackers Wed May 8 17:04:32 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA10757 for hackers-outgoing; Wed, 8 May 1996 17:04:32 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id RAA10748 for ; Wed, 8 May 1996 17:04:26 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id RAA27307; Wed, 8 May 1996 17:03:57 -0700 From: Terry Lambert Message-Id: <199605090003.RAA27307@phaeton.artisoft.com> Subject: Re: date change and wtmp record To: max@sfc.wide.ad.jp Date: Wed, 8 May 1996 17:03:56 -0700 (MST) Cc: terry@lambert.org, freebsd-hackers@FreeBSD.org In-Reply-To: <199605082318.IAA16019@mail.tky007.tth.expo96.ad.jp> from "Masafumi NAKANE/=?ISO-2022-JP?B?GyRCQ2Y6LDJtSjgbKEI=?=" at May 9, 96 08:18:11 am X-Mailer: ELM [version 2.4 PL24] 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 > > Pipe the output to "hexdump" and see if you get "7b" ('{') or "7d" > > ('}'). I'm still not satisfied that it isn't your font. > > Ok, here's the output: > > % last date | head -1 > date } Wed May 8 19:59 still logged in > % last date |head -1 | od -h > 0000000 6164 6574 2020 2020 2020 207d 2020 2020 > 0000020 2020 2020 2020 2020 2020 2020 2020 2020 > 0000040 2020 2020 6557 2064 614d 2079 3820 3120 > 0000060 3a39 3935 2020 7320 6974 6c6c 6c20 676f > 0000100 6567 2064 6e69 000a > 0000107 > % > > So, it really is '}'. At least `last' command sees it as '}' and > so it shows 'still logged in' as someone pointed out earlier. In line 220 of /src/bin/date/date.c: /* 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", ""); } It is clearly a '{'. This assumes you are using the standard "date" command to set your date. Check your date command dource code. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.