git: 8c1d956ffa03 - main - jail: fix jail(8) synposis and usage message to match reality.

Jamie Gritton jamie at FreeBSD.org
Sun Apr 4 17:52:48 UTC 2021


The branch main has been updated by jamie:

URL: https://cgit.FreeBSD.org/src/commit/?id=8c1d956ffa0355ece3b63ea8587938176f87f072

commit 8c1d956ffa0355ece3b63ea8587938176f87f072
Author:     Jamie Gritton <jamie at FreeBSD.org>
AuthorDate: 2021-04-04 17:49:38 +0000
Commit:     Jamie Gritton <jamie at FreeBSD.org>
CommitDate: 2021-04-04 17:49:38 +0000

    jail: fix jail(8) synposis and usage message to match reality.
    
    Reported by:    yuri
    PR:             254741
    MFC after:      5 days
---
 usr.sbin/jail/jail.8 | 4 ++--
 usr.sbin/jail/jail.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/usr.sbin/jail/jail.8 b/usr.sbin/jail/jail.8
index cc3561f03f6a..61fe91cf973e 100644
--- a/usr.sbin/jail/jail.8
+++ b/usr.sbin/jail/jail.8
@@ -25,7 +25,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd November 18, 2020
+.Dd April 4, 2021
 .Dt JAIL 8
 .Os
 .Sh NAME
@@ -58,7 +58,7 @@
 .Op Fl U Ar username
 .Op Fl n Ar jailname
 .Op Fl s Ar securelevel
-.Op Ar path hostname [ Ar ip Ns [ Ns Ar ,... Ns ]] Ar command ...
+.Ar path hostname ip Ns [ Ns Ar ,... Ns ] Ar command ...
 .Nm
 .Op Fl f Ar conf_file
 .Fl e
diff --git a/usr.sbin/jail/jail.c b/usr.sbin/jail/jail.c
index 920e573b9149..eb3b19f2cb82 100644
--- a/usr.sbin/jail/jail.c
+++ b/usr.sbin/jail/jail.c
@@ -1046,7 +1046,7 @@ usage(void)
 	    "       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);
 }


More information about the dev-commits-src-all mailing list