From obrien@NUXI.com  Thu Apr 18 09:55:28 2002
Return-Path: <obrien@NUXI.com>
Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169])
	by hub.freebsd.org (Postfix) with ESMTP id 8D66037B41C
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 18 Apr 2002 09:55:26 -0700 (PDT)
Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1])
	by dragon.nuxi.com (8.12.2/8.12.2) with ESMTP id g3IGtOYm090428
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 18 Apr 2002 09:55:24 -0700 (PDT)
	(envelope-from obrien@dragon.nuxi.com)
Received: (from obrien@localhost)
	by dragon.nuxi.com (8.12.2/8.12.2/Submit) id g3IGs9in090412;
	Thu, 18 Apr 2002 09:54:09 -0700 (PDT)
Message-Id: <200204181654.g3IGs9in090412@dragon.nuxi.com>
Date: Thu, 18 Apr 2002 09:54:09 -0700 (PDT)
From: "David O'Brien" <obrien@freebsd.org>
Reply-To: "David O'Brien" <obrien@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: mount(8) improperly parses mount device to determin if NFS
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37230
>Category:       bin
>Synopsis:       mount(8) improperly parses mount device to determin if NFS
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    mux
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 18 10:00:14 PDT 2002
>Closed-Date:    Mon Apr 22 16:06:39 PDT 2002
>Last-Modified:  Mon Apr 22 16:06:39 PDT 2002
>Originator:     David O'Brien
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD dragon.nuxi.com 5.0-CURRENT FreeBSD 5.0-CURRENT #238: Fri Feb 22 21:56:02 PST 2002 rootk@dragon.nuxi.com:/FBSD/src/sys/i386/compile/DRAGON i386


	
>Description:
	
	mount(8) will believe mounts to be "-t nfs" when they obviously
	are not and cannot be.  Mount does not use the RFC definition
	of a hostname or IP address to determin if something is a hostname
	or not followed by a ':'.  From the example below you can see that
	mount(8) believed "/FBSD/snapshot.20020418_09" was a hostname.

>How-To-Repeat:
	# mount -u -o snapshot /FBSD/snapshot.20020418_09:35 /FBSD	
	nfs: -o snapshot: option not supported

>Fix:

	fix command line parsing done by mount(8) so an explicit "-t ffs"
	does not have to be used.
>Release-Note:
>Audit-Trail:

From: David Malone <dwmalone@maths.tcd.ie>
To: David O'Brien <obrien@NUXI.com>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: bin/37230: mount(8) improperly parses mount device to determin if NFS
Date: Thu, 18 Apr 2002 18:05:14 +0100

 On Thu, Apr 18, 2002 at 09:54:09AM -0700, David O'Brien wrote:
 > >Description:
 > 	
 > 	mount(8) will believe mounts to be "-t nfs" when they obviously
 > 	are not and cannot be.  Mount does not use the RFC definition
 > 	of a hostname or IP address to determine if something is a hostname
 > 	or not followed by a ':'.  From the example below you can see that
 > 	mount(8) believed "/FBSD/snapshot.20020418_09" was a hostname.
 
 I think this is a duplicate of 33809?
 
 	David.

From: "David O'Brien" <obrien@FreeBSD.org>
To: David Malone <dwmalone@maths.tcd.ie>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: bin/37230: mount(8) improperly parses mount device to determin if NFS
Date: Thu, 18 Apr 2002 10:16:58 -0700

 On Thu, Apr 18, 2002 at 06:05:14PM +0100, David Malone wrote:
 > On Thu, Apr 18, 2002 at 09:54:09AM -0700, David O'Brien wrote:
 > > >Description:
 > > 	
 > > 	mount(8) will believe mounts to be "-t nfs" when they obviously
 > > 	are not and cannot be.  Mount does not use the RFC definition
 > > 	of a hostname or IP address to determin if something is a hostname
 > > 	or not followed by a ':'.  From the example below you can see that
 > > 	mount(8) believed "/FBSD/snapshot.20020418_09" was a hostname.
 > 
 > I think this is a duplicate of 33809?
 
 Yes and no.  The patch in that PR is against mount_nfs, where to fix
 my problem mount.c needs fixing.  Also the suggested fix will not fix my
 problem as the suggested fix assumes there will be ':' that should be
 handled specially (because only NFS was considered).  I would suggest
 putting a "see also" in both PR's; or the meat of my PR to 33809.
Responsible-Changed-From-To: freebsd-bugs->mux 
Responsible-Changed-By: mux 
Responsible-Changed-When: Thu Apr 18 14:49:46 PDT 2002 
Responsible-Changed-Why:  
I will take care of this problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37230 
State-Changed-From-To: open->closed 
State-Changed-By: mux 
State-Changed-When: Mon Apr 22 16:05:09 PDT 2002 
State-Changed-Why:  
Fixed in revision 1.45 of mount.c. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37230 
>Unformatted:
