From root@assaris2.sics.se  Thu Sep 12 22:11:15 1996
Received: from assaris2.sics.se ([193.10.66.111])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id WAA23386
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 12 Sep 1996 22:11:08 -0700 (PDT)
Received: (from root@localhost) by assaris2.sics.se (8.7.5/8.7.3) id HAA00716; Fri, 13 Sep 1996 07:11:01 +0200 (MET DST)
Message-Id: <199609130511.HAA00716@assaris2.sics.se>
Date: Fri, 13 Sep 1996 07:11:01 +0200 (MET DST)
From: assar@sics.se
Reply-To: assar@sics.se
To: FreeBSD-gnats-submit@freebsd.org
Subject: unmount fails for a NFS fs mounted without -P from a server that requires reserved ports
X-Send-Pr-Version: 3.2

>Number:         1607
>Category:       bin
>Synopsis:       unmount fails for a NFS fs mounted without -P from a server that requires reserved ports
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    peter
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 12 22:20:02 PDT 1996
>Closed-Date:    Mon May 11 00:39:30 PDT 1998
>Last-Modified:  Mon May 11 00:40:18 PDT 1998
>Originator:     Assar Westerlund <assar@sics.se>
>Release:        FreeBSD 2.2-960801-SNAP i386
>Organization:
>Environment:

	

>Description:

When trying to unmount a NFS-filesystem mounted from a server that
requires reserved ports but without the -P option, unmount fails.

	

>How-To-Repeat:

bash# mount foo:/fs /mnt
bash# umount /mnt
umount: foo:/fs: No such file or directory

Where foo is a NFS-server requiring reserved ports and /fs a file
system on that server that you are allowed to mount.
	

>Fix:
	
	

>Release-Note:
>Audit-Trail:

From: Thomas Gellekum <thomas@ghpc8.ihf.rwth-aachen.de>
To: assar@sics.se
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: bin/1607: unmount fails for a NFS fs mounted without -P from a server that requires reserved ports
Date: Fri, 13 Sep 1996 08:23:23 +0200 (MET DST)

 assar@sics.se wrote:
 > 
 > >Description:
 > 
 > When trying to unmount a NFS-filesystem mounted from a server that
 > requires reserved ports but without the -P option, unmount fails.
 > 
 > 	
 > 
 > >How-To-Repeat:
 > 
 > bash# mount foo:/fs /mnt
 > bash# umount /mnt
 > umount: foo:/fs: No such file or directory
 
 Try `umount foo:/fs'; I think that works. Don't ask me why, though.
 
 tg

From: Assar <assar@sics.se>
To: Thomas Gellekum <thomas@ghpc8.ihf.rwth-aachen.de>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: bin/1607: unmount fails for a NFS fs mounted without -P from a server that requires reserved ports
Date: 13 Sep 1996 08:35:34 +0200

 Thomas Gellekum <thomas@ghpc8.ihf.rwth-aachen.de> writes:
 > assar@sics.se wrote:
 > > 
 > > >Description:
 > > 
 > > When trying to unmount a NFS-filesystem mounted from a server that
 > > requires reserved ports but without the -P option, unmount fails.
 > > 
 > > 	
 > > 
 > > >How-To-Repeat:
 > > 
 > > bash# mount foo:/fs /mnt
 > > bash# umount /mnt
 > > umount: foo:/fs: No such file or directory
 > 
 > Try `umount foo:/fs'; I think that works. Don't ask me why, though.
 
 From reading the code it does more of less:
 
 if(stat(name, ) < 0)
   try to find the other half of (device, mounted_on) with getmnttab
 
 unmount()
 
 stat for /mnt fails with EACCES, so you find do unmount(`foo:/fs')
 which fails.  With your suggestion, stat still fails and you do
 unmount(`/mnt'), with is the right thing!
 
 I'm still not sure how to fix it.
 
 /assar
Responsible-Changed-From-To: freebsd-bugs->dfr 
Responsible-Changed-By: dfr 
Responsible-Changed-When: Wed Apr 30 03:05:52 PDT 1997 
Responsible-Changed-Why:  
This one should be fairly easy to fix. 
Responsible-Changed-From-To: dfr->peter 
Responsible-Changed-By: peter 
Responsible-Changed-When: Sun Apr 26 00:34:22 PDT 1998 
Responsible-Changed-Why:  
iI'll take a look at this.. 
State-Changed-From-To: open->closed 
State-Changed-By: peter 
State-Changed-When: Mon May 11 00:39:30 PDT 1998 
State-Changed-Why:  
Should be fixed in umount.c rev 1.14 
>Unformatted:
