>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:
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to