git: f9f42a709b2b - main - sbin/devfs: Correct usage
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 30 Apr 2022 18:00:21 UTC
The branch main has been updated by ngie:
URL: https://cgit.FreeBSD.org/src/commit/?id=f9f42a709b2b3f8c8d3de517f301d4ccb33e7b16
commit f9f42a709b2b3f8c8d3de517f301d4ccb33e7b16
Author: Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2022-04-30 17:54:43 +0000
Commit: Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2022-04-30 18:00:11 +0000
sbin/devfs: Correct usage
The -s applies to rule keyword only and it follows the rule keyword.
MFC after: 1 week
PR: [[https://bugs.freebsd.org/bugzilla/show_bug.cgi?id= 263289|263289]]
Submitted by: Yuichiro NAITO <naito.yuichiro@gmail.com>
Fixes: c3e412c08333 sbin/devfs: clarify usage
Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D34934
---
sbin/devfs/devfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbin/devfs/devfs.c b/sbin/devfs/devfs.c
index 7be94c4737de..b5a6bf4015a2 100644
--- a/sbin/devfs/devfs.c
+++ b/sbin/devfs/devfs.c
@@ -228,7 +228,7 @@ usage(void)
{
fprintf(stderr, "usage: %s\n%s\n",
- "\tdevfs [-m mount-point] [-s ruleset] rule ...",
+ "\tdevfs [-m mount-point] rule [-s ruleset] ...",
"\tdevfs [-m mount-point] ruleset ...");
exit(1);
}