From owner-freebsd-current Thu Aug 5 3: 7:17 1999 Delivered-To: freebsd-current@freebsd.org Received: from mail.rp-plus.de (clubserv.rp-online.de [149.221.232.11]) by hub.freebsd.org (Postfix) with ESMTP id D84F2154A3 for ; Thu, 5 Aug 1999 03:07:10 -0700 (PDT) (envelope-from alex@cichlids.com) Received: from neutron.cichlids.com (as10-033.rp-plus.de [149.221.236.97]) by mail.rp-plus.de (8.9.1a/8.9.1) with ESMTP id MAA28655 for ; Thu, 5 Aug 1999 12:06:58 +0200 (METDST) Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by neutron.cichlids.com (8.9.3/8.9.1) with ESMTP id MAA92684 for ; Thu, 5 Aug 1999 12:05:49 +0200 (CEST) Received: (from alex@localhost) by cichlids.cichlids.com (8.9.3/8.9.3) id MAA01475 for freebsd-current@FreeBSD.ORG; Thu, 5 Aug 1999 12:04:54 +0200 (CEST) (envelope-from alex) Date: Thu, 5 Aug 1999 12:04:53 +0200 From: Alexander Langer To: freebsd-current@FreeBSD.ORG Subject: Re: "w" date Message-ID: <19990805120453.A1374@cichlids.cichlids.com> Mail-Followup-To: freebsd-current@FreeBSD.ORG References: <19990803143047.A1776@cichlids.cichlids.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.95i In-Reply-To: <19990803143047.A1776@cichlids.cichlids.com> X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thus spake Alexander Langer (alex@cichlids.com): > root p0 0.10 04Nov35 - (w) > bash-2.02# date > Tue Aug 3 14:26:47 CEST 1999 > Take a look at the last one: p0. I logged in ~5 min before. > The date confuses me. I took a further look into the sources. usr.bin/w/* is not the problem, Iīd say. It probably read the time wrong from /var/run/utmp if ((ut = fopen(_PATH_UTMP, "r")) == NULL) err(1, "%s", _PATH_UTMP); for (nusers = 0; fread(&utmp, sizeof(utmp), 1, ut);) { ... I donīt know, which daemon writes to /var/run/utmp. Maybe I should notice, that Iīm logged in via ssh. Any ideas? BTW: My machine, that is some newer, told me a login @ 01Jan71 (or 72 or 70? I forgot, but it doesnīt matter. itīs wrong at all) just a minute ago. Thatīs also wrong but exactly the opposite of year 2035. Now, it tells me something wrong, AGAIN. But not so worse at all: I typed the following without any breaks, it took only ~5 seconds. bash-2.02# ssh cichlids root@cichlids's password: You have mail. bash-2.02# date Do 5 Aug 1999 12:02:59 CEST bash-2.02# w 12:02pm up 1:29, 2 users, load averages: 1.13, 1.11, 1.08 USER TTY FROM LOGIN@ IDLE WHAT alex v7 - 10:36am 1:26 -bash (bash) ttyp4 - 12:00pm 1:28 - bash-2.02# Strange. the login is at 12:02 and not at 12:00 ! Whatīs wrong with /var/run/utmp? Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message