Thus spake Alexander Langer ([EMAIL PROTECTED]):

>  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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to