[Bug 254741] jail(8) fails with "Usage" message when invocation is like it suggests

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Apr 3 16:48:25 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254741

            Bug ID: 254741
           Summary: jail(8) fails with "Usage" message when invocation is
                    like it suggests
           Product: Base System
           Version: 12.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: yuri at freebsd.org

This command:
> # jail /disk/jail testjail /etc/rc
> usage: jail [-dhilqv] [-J jid_file] [-u username] [-U username]
>             -[cmr] param=value ... [command=command ...]
>        jail [-dqv] [-f file] -[cmr] [jail]
>        jail [-qv] [-f file] -[rR] ['*' | jail ...]
>        jail [-dhilqv] [-J jid_file] [-u username] [-U username]
>             [-n jailname] [-s securelevel]
>             path hostname [ip[,...]] command ...
>        jail [-f file] -e separator

fails with "Usage", but the invocation satisfies the 4th usage suggestion from
the message:
>        jail [-dhilqv] [-J jid_file] [-u username] [-U username]
>             [-n jailname] [-s securelevel]
>             path hostname [ip[,...]] command ...
It is the same after removing optional elements.

So either the "Usage" message is wrong, or the problem is not in invocation but
in something else.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list