Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2012 21:00:28 +0400 (MSK)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/169490: [jail(8)] -u option broken
Message-ID:  <20120627170028.C4E23AEB@hades.panopticon>
Resent-Message-ID: <201206271710.q5RHA4Le031647@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         169490
>Category:       bin
>Synopsis:       [jail(8)] -u option broken
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 27 17:10:03 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 9.0-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD hades.panopticon 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Wed Jun 13 17:39:20 MSK 2012 root@hades.panopticon:/usr/obj/usr/src/sys/HADES amd64


>Description:
jail utility doesn't recognize -u option
>How-To-Repeat:
% jail -u user ...
jail: illegal option -- u
>Fix:

--- jail.patch begins here ---
diff --git usr.sbin/jail/jail.c usr.sbin/jail/jail.c
index 4fc03c9..78160c0 100644
--- usr.sbin/jail/jail.c
+++ usr.sbin/jail/jail.c
@@ -145,7 +145,7 @@ main(int argc, char **argv)
 	cfname = CONF_FILE;
 	JidFile = NULL;
 
-	while ((ch = getopt(argc, argv, "cdf:hiJ:lmn:p:qrRs:U:v")) != -1) {
+	while ((ch = getopt(argc, argv, "cdf:hiJ:lmn:p:qrRs:u:U:v")) != -1) {
 		switch (ch) {
 		case 'c':
 			op |= JF_START;
--- jail.patch ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120627170028.C4E23AEB>