From nobody  Thu Oct 24 09:44:16 1996
Received: (from nobody@localhost)
          by freefall.freebsd.org (8.7.5/8.7.3) id JAA04144;
          Thu, 24 Oct 1996 09:44:16 -0700 (PDT)
Message-Id: <199610241644.JAA04144@freefall.freebsd.org>
Date: Thu, 24 Oct 1996 09:44:16 -0700 (PDT)
From: salmons@plaza.ds.adp.com
To: freebsd-gnats-submit@freebsd.org
Subject: rdump fails with "TCP_MAXSEG setsockopt: Bad file descriptor" error
X-Send-Pr-Version: www-1.0

>Number:         1879
>Category:       bin
>Synopsis:       rdump fails with "TCP_MAXSEG setsockopt: Bad file descriptor" error
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    fenner
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          support
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 24 09:50:01 PDT 1996
>Closed-Date:    Mon Jan 27 10:39:22 PST 1997
>Last-Modified:  Mon Jan 27 10:41:21 PST 1997
>Originator:     Mike Salmons
>Release:        2.1.0
>Organization:
ADP
>Environment:
FreeBSD marvin.plaza.ds.adp.com 2.1.0-RELEASE FreeBSD 2.1.0-RELEASE #0: Thu Nov 16 10:47:14  1995     jkh@westhill.cdrom
.com:/usr/src/sys/compile/GENERIC  i386
>Description:
# rdump 0f knuth:/dev/rst0 /
Permission denied.
TCP_MAXSEG setsockopt: Bad file descriptor

>How-To-Repeat:
Same thing happins on other freebsd system.

uname -a:

FreeBSD myst.plaza.ds.adp.com 2.0-RELEASE FreeBSD 2.0-RELEASE #0: Fri Feb 10 18:47:29 PST 1995     root@myst.plaza.ds.ad
p.com:/usr/src/sys/compile/MOCHA  i386

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: fenner 
State-Changed-When: Fri Oct 25 15:59:31 PDT 1996 
State-Changed-Why:  
The real error message is "Permission denied."  Sent patch to originator 
which returns immediately if rcmd() fails, without trying any setsockopt()'s 
on the erroneous file descriptor. 


Responsible-Changed-From-To: freebsd-bugs->fenner 
Responsible-Changed-By: fenner 
Responsible-Changed-When: Fri Oct 25 15:59:31 PDT 1996 
Responsible-Changed-Why:  
I will monitor status 
State-Changed-From-To: feedback->closed 
State-Changed-By: fenner 
State-Changed-When: Mon Jan 27 10:39:22 PST 1997 
State-Changed-Why:  
Fixed in rev 1.3 of dumprmt.c 
>Unformatted:
