From owner-freebsd-bugs Thu Apr 18 10: 0:19 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A705F37B41D for ; Thu, 18 Apr 2002 10:00:14 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3IH0EB58859; Thu, 18 Apr 2002 10:00:14 -0700 (PDT) (envelope-from gnats) Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 8D66037B41C for ; 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 ; 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" Reply-To: "David O'Brien" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/37230: mount(8) improperly parses mount device to determin if NFS Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 37230 >Category: bin >Synopsis: mount(8) improperly parses mount device to determin if NFS >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: Thu Apr 18 10:00:14 PDT 2002 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message