Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Nov 2023 04:10:49 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 35095fd23f07 - main - lockf: correct omission in the usage statement
Message-ID:  <202311260410.3AQ4An0t038070@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=35095fd23f071d03633312b91a5b460eaf811efa

commit 35095fd23f071d03633312b91a5b460eaf811efa
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2023-11-22 04:45:42 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2023-11-26 04:08:40 +0000

    lockf: correct omission in the usage statement
    
    The -w flag was added without being noted in the usage statement; fix
    that now.
    
    While we're here, re-sort the getopt() string.
    
    Reviewed by:    0mp, allanjude, des
    Sponsored by:   Klara, Inc.
    Differential Revision:  https://reviews.freebsd.org/D42712
---
 usr.bin/lockf/lockf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/usr.bin/lockf/lockf.c b/usr.bin/lockf/lockf.c
index 246f134f10f9..ff1e7a6d6216 100644
--- a/usr.bin/lockf/lockf.c
+++ b/usr.bin/lockf/lockf.c
@@ -62,7 +62,7 @@ main(int argc, char **argv)
 	silent = keep = 0;
 	flags = O_CREAT | O_RDONLY;
 	waitsec = -1;	/* Infinite. */
-	while ((ch = getopt(argc, argv, "sknt:w")) != -1) {
+	while ((ch = getopt(argc, argv, "knst:w")) != -1) {
 		switch (ch) {
 		case 'k':
 			keep = 1;
@@ -228,7 +228,7 @@ usage(void)
 {
 
 	fprintf(stderr,
-	    "usage: lockf [-kns] [-t seconds] file command [arguments]\n");
+	    "usage: lockf [-knsw] [-t seconds] file command [arguments]\n");
 	exit(EX_USAGE);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202311260410.3AQ4An0t038070>