Author: eugen
Date: Fri Apr 17 10:12:11 2020
New Revision: 360040
URL: https://svnweb.freebsd.org/changeset/base/360040

Log:
  jail(8): improve manual and usage information with more clear
  description for "jail -e" mode to show that it does not take
  additional jail name argument.
  
  Reported by:          David Marec <[email protected]>
  MFC after:            3 days

Modified:
  head/usr.sbin/jail/jail.8
  head/usr.sbin/jail/jail.c

Modified: head/usr.sbin/jail/jail.8
==============================================================================
--- head/usr.sbin/jail/jail.8   Fri Apr 17 07:41:27 2020        (r360039)
+++ head/usr.sbin/jail/jail.8   Fri Apr 17 10:12:11 2020        (r360040)
@@ -25,7 +25,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd August 6, 2019
+.Dd April 17, 2020
 .Dt JAIL 8
 .Os
 .Sh NAME
@@ -49,7 +49,6 @@
 .Nm
 .Op Fl qv
 .Op Fl f Ar conf_file
-.Op Fl e Ar separator
 .Op Fl rR
 .Op Cm * | Ar jail ...
 .Nm
@@ -60,6 +59,10 @@
 .Op Fl n Ar jailname
 .Op Fl s Ar securelevel
 .Op Ar path hostname [ Ar ip Ns [ Ns Ar ,... Ns ]] Ar command ...
+.Nm
+.Op Fl f Ar conf_file
+.Fl e
+.Ar separator
 .Sh DESCRIPTION
 The
 .Nm

Modified: head/usr.sbin/jail/jail.c
==============================================================================
--- head/usr.sbin/jail/jail.c   Fri Apr 17 07:41:27 2020        (r360039)
+++ head/usr.sbin/jail/jail.c   Fri Apr 17 10:12:11 2020        (r360040)
@@ -1040,10 +1040,11 @@ usage(void)
        (void)fprintf(stderr,
            "usage: jail [-dhilqv] [-J jid_file] [-u username] [-U username]\n"
            "            -[cmr] param=value ... [command=command ...]\n"
-           "       jail [-dqv] [-f file] [-e separator] -[cmr] [jail]\n"
+           "       jail [-dqv] [-f file] -[cmr] [jail]\n"
            "       jail [-qv] [-f file] -[rR] ['*' | jail ...]\n"
            "       jail [-dhilqv] [-J jid_file] [-u username] [-U username]\n"
            "            [-n jailname] [-s securelevel]\n"
-           "            path hostname [ip[,...]] command ...\n");
+           "            path hostname [ip[,...]] command ...\n"
+           "       jail [-f file] -e separator\n");
        exit(1);
 }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to