From 75a94ae7d143a067a7a9eef2a1d2072fbd5044cf Mon Sep 17 00:00:00 2001 From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Wed, 10 Jun 2026 17:50:12 +0200 Subject: [PATCH] inetd: Add missing argument to the -p flag description While here, use the more specific "pidfile" consistently instead of ambiguous "filename". Reviewed by: ziaee MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D57531 --- usr.sbin/inetd/inetd.8 | 6 +++--- usr.sbin/inetd/inetd.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/inetd/inetd.8 b/usr.sbin/inetd/inetd.8 index 189415caa71..2fe116c076d 100644 --- a/usr.sbin/inetd/inetd.8 +++ b/usr.sbin/inetd/inetd.8 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd November 5, 2025 +.Dd June 10, 2026 .Dt INETD 8 .Os .Sh NAME @@ -38,7 +38,7 @@ .Op Fl a Ar address .Op Fl C Ar rate .Op Fl c Ar maximum -.Op Fl p Ar filename +.Op Fl p Ar pidfile .Op Fl R Ar rate .Op Fl s Ar maximum .Op Ar configuration_file @@ -115,7 +115,7 @@ parameter. Turn on debugging. .It Fl l Turn on logging of successful connections. -.It Fl p +.It Fl p Ar pidfile Specify an alternate file in which to store the process ID. .It Fl R Ar rate Specify the maximum number of times a service can be invoked diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index 2ebc9fe02a8..33316ce170a 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -381,7 +381,7 @@ main(int argc, char **argv) default: syslog(LOG_ERR, "usage: inetd [-dlWw] [-a address] [-C rate]" - " [-c maximum] [-p filename] [-R rate]" + " [-c maximum] [-p pidfile] [-R rate]" " [-s maximum] [configuration_file]"); exit(EX_USAGE); }