From louie@whizzo.transsys.com  Tue Mar 18 12:57:35 1997
Received: from whizzo.transsys.com ([144.202.42.10])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA27677
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 18 Mar 1997 12:57:34 -0800 (PST)
Received: (from louie@localhost) by whizzo.transsys.com (8.8.5/8.7.3) id PAA07772; Tue, 18 Mar 1997 15:57:31 -0500 (EST)
Message-Id: <199703182057.PAA07772@whizzo.transsys.com>
Date: Tue, 18 Mar 1997 15:57:31 -0500 (EST)
From: Louis Mamakos <louie@TransSys.COM>
Reply-To: louie@TransSys.COM
To: FreeBSD-gnats-submit@freebsd.org
Subject: error in getmntops.c parsing 'port=' type arguments
X-Send-Pr-Version: 3.2

>Number:         3027
>Category:       bin
>Synopsis:       error parsing mount options which include an '=' parameter
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 18 13:00:02 PST 1997
>Closed-Date:    Tue Apr 29 22:49:38 PDT 1997
>Last-Modified:  Tue Apr 29 22:50:34 PDT 1997
>Originator:     Louis A. Mamakos
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

Nothing special; try mounting an NFS server at a non-standard port number,
such as when using cfs (crypto file system)

>Description:

When upgrading to 3.0-CURRENT, noticed that Matt Blaze's cfs (encrypted
file system) stopped working, due to not being able to mount an nfs server
at a non-standard port number.	

>How-To-Repeat:

Try typing this:

    mount -t nfs -o port=3049,intr localhost:/null /crypt  

and notice you get an 'invalid' parameter error.

>Fix:
	
This patch, or alternatively, don't include the '=' in the option
name in sbin/mount_nfs/mount_nfs.c; not sure what's exactly intended.

Index: sbin/mount/getmntopts.c
===================================================================
RCS file: /usr/local/FreeBSD/cvs/src/sbin/mount/getmntopts.c,v
retrieving revision 1.4
diff -u -r1.4 getmntopts.c
--- getmntopts.c	1997/03/11 12:27:56	1.4
+++ getmntopts.c	1997/03/18 20:45:27
@@ -78,7 +78,7 @@
 		 */
 		p = strchr(opt, '=');
 		if (p)
-			 *p = '\0';
+			 *++p = '\0';
 
 		/* Scan option table. */
 		for (m = m0; m->m_option != NULL; ++m) {

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: msmith 
State-Changed-When: Tue Apr 29 22:49:38 PDT 1997 
State-Changed-Why:  
Committed patch as supplied.  Not applicable to RELENG_2_2. 
>Unformatted:
