From owner-freebsd-stable Tue Sep 24 1:15:30 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D359837B401 for ; Tue, 24 Sep 2002 01:15:28 -0700 (PDT) Received: from cheer.mahoroba.org (flets20-060.kamome.or.jp [218.45.20.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CEED43E6A for ; Tue, 24 Sep 2002 01:15:27 -0700 (PDT) (envelope-from ume@mahoroba.org) Received: from localhost (IDENT:45QqQfNXzRI+WlF+f3s3ZhCqvYzetu7XGpLHRPECfv14wNT9JLUdlwWpzEnYY2xU@localhost [IPv6:::1]) (user=ume mech=CRAM-MD5 bits=0) by cheer.mahoroba.org (8.12.6/8.12.6) with ESMTP/inet6 id g8O8EuxA091267 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 24 Sep 2002 17:15:00 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Tue, 24 Sep 2002 17:14:56 +0900 Message-ID: From: Hajimu UMEMOTO To: Jonathan Chen Cc: Andrew Gordon , AlanE , FreeBSD Stable List Subject: Re: Weird uptime(1) output In-Reply-To: <20020923200612.GC2872@grimoire.chen.org.nz> References: <20020923033214.GB48084@wwweasel.geeksrus.net> <20020923110213.L2298-100000@server.arg.sj.co.uk> <20020923200612.GC2872@grimoire.chen.org.nz> User-Agent: xcite1.38> Wanderlust/2.9.13 (Unchained Melody) SEMI/1.14.4 (Hosorogi) FLIM/1.14.4 (=?ISO-8859-4?Q?Kashiharajing=FE-mae?=) APEL/10.3 Emacs/21.2 (i386--freebsd) MULE/5.0 (=?ISO-2022-JP?B?GyRCOC1MWhsoQg==?=) X-Operating-System: FreeBSD 4.7-RC MIME-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, >>>>> On Tue, 24 Sep 2002 08:06:12 +1200 >>>>> Jonathan Chen said: jonc> On Mon, Sep 23, 2002 at 04:18:51PM +0100, Andrew Gordon wrote: > --- usr.bin/w/w.c 12 Mar 2002 19:51:51 -0000 1.38.2.6 > +++ usr.bin/w/w.c 23 Sep 2002 15:00:45 -0000 > @@ -504,6 +504,12 @@ > static struct stat sb; > char ttybuf[MAXPATHLEN]; > > + if (line[0] == ':') { > + /* Assume an X login via sessreg */ > + time(&sb.st_atime); > + sb.st_rdev = -1; > + return (&sb); > + } > (void)snprintf(ttybuf, sizeof(ttybuf), "%s%.*s", _PATH_DEV, sz, > line); > if (stat(ttybuf, &sb)) { > warn("%s", ttybuf); > It seems this patch doesn't consider an IPv6 address. Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message