Date: Tue, 24 Sep 2002 17:14:56 +0900 From: Hajimu UMEMOTO <ume@mahoroba.org> To: Jonathan Chen <jonc@chen.org.nz> Cc: Andrew Gordon <arg-bsd@arg1.demon.co.uk>, AlanE <alane@geeksrus.net>, FreeBSD Stable List <freebsd-stable@FreeBSD.ORG> Subject: Re: Weird uptime(1) output Message-ID: <yge3crzyfb3.wl%ume@mahoroba.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi,
>>>>> On Tue, 24 Sep 2002 08:06:12 +1200
>>>>> Jonathan Chen <jonc@chen.org.nz> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?yge3crzyfb3.wl%ume>
