Date: Mon, 6 May 1996 13:50:55 -0700 (MST) From: Terry Lambert <terry@lambert.org> To: joerg_wunsch@uriah.heep.sax.de Cc: freebsd-hackers@freebsd.org, max@sfc.wide.ad.jp Subject: Re: date change and wtmp record Message-ID: <199605062050.NAA21864@phaeton.artisoft.com> In-Reply-To: <199605060704.JAA05118@uriah.heep.sax.de> from "J Wunsch" at May 6, 96 09:04:09 am
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605062050.NAA21864>