From nobody@FreeBSD.org  Tue Feb 26 20:02:54 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 0DFFA4EE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Feb 2013 20:02:54 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id DB5FB1C60
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Feb 2013 20:02:53 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r1QK2rPb082006
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Feb 2013 20:02:53 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r1QK2rLF082005;
	Tue, 26 Feb 2013 20:02:53 GMT
	(envelope-from nobody)
Message-Id: <201302262002.r1QK2rLF082005@red.freebsd.org>
Date: Tue, 26 Feb 2013 20:02:53 GMT
From: McClane <everytrash@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ZFS NFS export went wrong with spezial hostname character
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         176449
>Category:       bin
>Synopsis:       zfs(1): ZFS NFS export went wrong with special hostname character
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 26 20:10:01 UTC 2013
>Closed-Date:    
>Last-Modified:  Wed Feb 27 00:09:10 UTC 2013
>Originator:     McClane
>Release:        FreeBSD 9.1-RELEASE
>Organization:
>Environment:
FreeBSD xxxxxx 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
"zfs set" write a wrong entry in "etc/zfs/exports" when the command
contains a "-" character in the hostname.
>How-To-Repeat:
--------------------------------------------------------------------
root@XXX ~ # zfs set sharenfs="-maproot=root xxxxxx-01" tank/nfs
--------------------------------------------------------------------

--------------------------------------------------------------------
root@XXX ~ # cat /etc/zfs/exports
# !!! DO NOT EDIT THIS FILE MANUALLY !!!
/nfs    -maproot=root xxxxxx 01 
--------------------------------------------------------------------

--------------------------------------------------------------------
root@XXX ~ # showmount -e
Exports list on localhost:
--------------------------------------------------------------------

>Fix:
Complement the "-" character manually into the "etc/zfs/exports" file.

--------------------------------------------------------------------
root@XXX ~ # cat /etc/zfs/exports
# !!! DO NOT EDIT THIS FILE MANUALLY !!!
/nfs    -maproot=root xxxxxx-01
--------------------------------------------------------------------

--------------------------------------------------------------------
root@XXX ~ # service mountd reload
--------------------------------------------------------------------

--------------------------------------------------------------------
root@XXX ~ # showmount -e
Exports list on localhost:
/nfs                               xxxxxx-01
--------------------------------------------------------------------


>Release-Note:
>Audit-Trail:
>Unformatted:
