From nobody@FreeBSD.org  Thu Jul  7 13:33:36 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7BAAF16A41C
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  7 Jul 2005 13:33:36 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 454C943D49
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  7 Jul 2005 13:33:36 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j67DXZ5w092820
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 7 Jul 2005 13:33:35 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j67DXZsx092819;
	Thu, 7 Jul 2005 13:33:35 GMT
	(envelope-from nobody)
Message-Id: <200507071333.j67DXZsx092819@www.freebsd.org>
Date: Thu, 7 Jul 2005 13:33:35 GMT
From: Stefan Witzel <stefan.witzel@zvw.uni-goettingen.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: no '-' allowed in jail names in rc.conf
X-Send-Pr-Version: www-2.3

>Number:         83092
>Category:       conf
>Synopsis:       no '-' allowed in jail names in rc.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    matteo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 07 13:40:16 GMT 2005
>Closed-Date:    Fri Jan 20 21:59:44 GMT 2006
>Last-Modified:  Fri Jan 20 21:59:44 GMT 2006
>Originator:     Stefan Witzel
>Release:        5.4
>Organization:
Universitaet Goettingen
>Environment:
FreeBSD tethys.zvw.uni-goettingen.de 5.4-STABLE FreeBSD 5.4-STABLE #9: Mon Jun 27 14:35:29 CEST 2005     dv1@tethys.zvw.uni-goettingen.de:/usr/obj/usr/src/sys/tethys-3.x  i386

>Description:
If a jail name in rc.conf (introduced in jail_list= ) contains a '-' (minus) the start of the jail fails.       
>How-To-Repeat:
      
>Fix:
      
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->matteo 
Responsible-Changed-By: matteo 
Responsible-Changed-When: Fri Jan 20 13:43:22 UTC 2006 
Responsible-Changed-Why:  
Take this one 

http://www.freebsd.org/cgi/query-pr.cgi?pr=83092 
State-Changed-From-To: open->closed 
State-Changed-By: matteo 
State-Changed-When: Fri Jan 20 21:56:37 UTC 2006 
State-Changed-Why:  
The problem is not really jail-related. You cannot use names that contain a "-" because of sh(1) limitations: lines in rc.conf are sh variables and therefore cannot contain "-". 
From the sh(1) man page: 
Variables set by the user must have a name consisting solely of alphabetics, numerics, and underscores.  

Please consider using underscores instead of "-" 

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