Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Dec 2002 22:04:51 +1100 (EST)
From:      J R Matthews <jrm@delta-e.com.au>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/45914: problems with /usr/bin/finger on some hosts
Message-ID:  <200212021104.gB2B4p9C066067@inferno.darktide.net>

next in thread | raw e-mail | index | archive | help

>Number:         45914
>Category:       bin
>Synopsis:       problems with /usr/bin/finger on some hosts
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 02 03:10:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     J R Matthews
>Release:        FreeBSD 4.7-RELEASE i386
>Organization:
Delta eSolutions
>Environment:
System: FreeBSD inferno 4.7-RELEASE FreeBSD 4.7-RELEASE #10: Thu Oct 24 01:07:37 EST 2002 root@inferno:/usr/obj/usr/src/sys/INFERNO i386

>Description:

I just upgraded a myriad of my systems from 4.6R-p2 to 4.7 and
lo-and-behold I could no longer use /usr/bin/finger to get a finger from
remote Ascend NAS.

Funnily enough, it still worked on remote Cisco and unix boxen.

Still - i got shitty with it, and dug into the problem.

In 4.6R there was no INET6 support - 4.7 onwards now has it and someone
just very simply screwed up typing in the new code, as you'll plainly see.

Old Code snippet from net.c

	iov[msg.msg_iovlen].iov_base = "\r\n";

New code snippet from net.c

	static char neteol[] = "\n\r";
	.
	.
	.
	iov[msg.msg_iovlen].iov_base = neteol;

Well, it's pretty obvious what the problem now isnt it? :)

And, of course - changing it to the old behavior of "\r\n" does fix it and
my problems are no more.

I can submit a patch to fix this if you want or not.. I honestly dont give
a damn to be honest ;)


>How-To-Repeat:

Try fingering an Ascend NAS.  Still, I think my above description outlines
the issue pretty obviously.

>Fix:

Obvious - alter net.c in usr.bin/finger so that instead of

	static char neteol[] = "\n\r";

We have instead

	static char neteol[] = "\r\n";
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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