From nobody@FreeBSD.org  Wed Jul 27 05:23:11 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 14773106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Jul 2011 05:23:11 +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 039178FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Jul 2011 05:23:11 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p6R5NADo083045
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Jul 2011 05:23:10 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p6R5NA9j083036;
	Wed, 27 Jul 2011 05:23:10 GMT
	(envelope-from nobody)
Message-Id: <201107270523.p6R5NA9j083036@red.freebsd.org>
Date: Wed, 27 Jul 2011 05:23:10 GMT
From: Tsubasa Nomura <tsubasa@nomupro.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ezjail-admin command, console option bug.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: erdgeist@erdgeist.org

>Number:         159221
>Category:       ports
>Synopsis:       sysutils/ezjail: ezjail-admin command, console option bug.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    crees
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 27 05:30:07 UTC 2011
>Closed-Date:    Mon Nov 07 18:31:32 UTC 2011
>Last-Modified:  Mon Nov 07 18:31:32 UTC 2011
>Originator:     Tsubasa Nomura
>Release:        8.2-RELEASE
>Organization:
>Environment:
FreeBSD example.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
When use ezjail-admin command with console option.
And jail is stopped.

# ezjail-admin console  C78

Above command will fail.But completely.
>How-To-Repeat:
# ezjail-admin list
STA JID  IP              Hostname                       Root Directory
--- ---- --------------- ------------------------------ ------------------------
DS  N/A  192.168.1.250   C78                            /opt/jails/C78

# ezjail-admin console C78

>Fix:
--- /usr/local/bin/ezjail-admin.bk	2010-06-13 20:17:11.000000000 +0900
+++ /usr/local/bin/ezjail-admin	2011-07-27 14:08:15.000000000 +0900
@@ -1013,7 +1013,7 @@
   if [ -z "${ezjail_id}" ]; then
 
     # If force start is requested, try that
-    [ "$ezjail_forcestart}" ] || exerr "Error: Jail ${ezjail_name} appears not to be running\n  Start it first, or use '${ezjail_admin} console -f ${ezjail_name}' to force start."
+    [ "${ezjail_forcestart}" ] || exerr "Error: Jail ${ezjail_name} appears not to be running\n  Start it first, or use '${ezjail_admin} console -f ${ezjail_name}' to force start."
 
     # This one will also exerr on failure
     start_stop_jail_by_script onestart


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sun Oct 30 20:37:22 UTC 2011 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159221 
Responsible-Changed-From-To: freebsd-ports-bugs->crees 
Responsible-Changed-By: crees 
Responsible-Changed-When: Sun Oct 30 20:37:35 UTC 2011 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159221 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: erdgeist@erdgeist.org
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/159221: sysutils/ezjail: ezjail-admin command, console option bug.
Date: Sun, 30 Oct 2011 20:37:21 UT

 Maintainer of sysutils/ezjail,
 
 Please note that PR ports/159221 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/159221
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org
State-Changed-From-To: feedback->closed 
State-Changed-By: crees 
State-Changed-When: Mon Nov 7 18:31:29 UTC 2011 
State-Changed-Why:  
Thanks for your PR. The maintainer has emailed me to say that he will 
update the port with a new version; this will be fixed. 

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