Bug 266634 - rtsold(8) and rtsol(8) usage() functions: corrections
Summary: rtsold(8) and rtsol(8) usage() functions: corrections
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL: https://www.freebsd.org/cgi/man.cgi?q...
Keywords: needs-patch
Depends on:
Blocks:
 
Reported: 2022-09-26 18:30 UTC by ghuckriede
Modified: 2022-09-27 17:15 UTC (History)
2 users (show)

See Also:


Attachments
Screenshot: option -i in a FreeBSD 13.1-RELEASE-p2 view of the manual page (60.97 KB, image/png)
2022-09-27 01:57 UTC, Graham Perrin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ghuckriede 2022-09-26 18:30:48 UTC
The '-i' parameter (new in 13.1) is missing when the usage is displayed on the command line.
It appears https://reviews.freebsd.org/D32956 failed to add `-i` to the usage() function.

Discovered in FBSD 13.1.
This is still the case on HEAD@6914ffef4e2318ca1d0ead28eafb6f06055ce0f8
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2022-09-27 01:01:25 UTC
(In reply to ghuckriede from comment #0)

> The '-i' parameter (new in 13.1) is missing when the usage is displayed 
> on the command line. …


<https://github.com/freebsd/freebsd-src/commit/a0fc5094bf4c594f2717cd1b757b1b5daca61d3f>

>> releng/13.1 stable/13

– and <https://github.com/freebsd/freebsd-src/commit/a0fc5094bf4c594f2717cd1b757b1b5daca61d3f#diff-1c56fa78ab13de5ff16dbe8570000deb9e72040c39b98d85a990cc1a86e97725R197>. 

Hmm …
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2022-09-27 01:57:51 UTC
Created attachment 236855 [details]
Screenshot: option -i in a FreeBSD 13.1-RELEASE-p2 view of the manual page

Not reproducible here. Screenshot attached. 

ghuckriede, please run: 

freebsd-version -kru

– what's reported?
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-09-27 02:16:36 UTC
Sorry, I misunderstood. Please ignore comment 1 and comment 2. 

Confirmed: 

% rtsold
usage: rtsold [-dDfFm1] [-O script-name] [-p pidfile] [-R script-name] interface ...
usage: rtsold [-dDfFm1] [-O script-name] [-p pidfile] [-R script-name] -a
% uname -KU
1400067 1400067
%
Comment 4 ghuckriede 2022-09-27 13:18:16 UTC
Graham,
Sorry for not being more clear.  You figured it out before I could get back to you.

Upon further inspection, other options appear to be missing in the usage() function (`-i`, `-M [opt]`, `-u`).  Also `-p` needs to be removed from `rtsol`.