Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Aug 1999 12:04:53 +0200
From:      Alexander Langer <alex@cichlids.com>
To:        freebsd-current@FreeBSD.ORG
Subject:   Re: "w" date
Message-ID:  <19990805120453.A1374@cichlids.cichlids.com>
In-Reply-To: <19990803143047.A1776@cichlids.cichlids.com>
References:  <19990803143047.A1776@cichlids.cichlids.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990805120453.A1374>