From owner-freebsd-hackers Mon May 6 14:00:34 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id OAA08795 for hackers-outgoing; Mon, 6 May 1996 14:00:34 -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 OAA08788 for ; Mon, 6 May 1996 14:00:31 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id NAA21864; Mon, 6 May 1996 13:50:55 -0700 From: Terry Lambert Message-Id: <199605062050.NAA21864@phaeton.artisoft.com> Subject: Re: date change and wtmp record To: joerg_wunsch@uriah.heep.sax.de Date: Mon, 6 May 1996 13:50:55 -0700 (MST) Cc: freebsd-hackers@freebsd.org, max@sfc.wide.ad.jp In-Reply-To: <199605060704.JAA05118@uriah.heep.sax.de> from "J Wunsch" at May 6, 96 09:04:09 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 > > 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 What is your date-stamping program? I must assume it is not standard, or it would have hard-coded the value from the man page (bletch). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.