Page MenuHomeFreeBSD

lockf: hide unavailable error with -n -s
ClosedPublic

Authored by kevans on Nov 22 2023, 5:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 16, 2:13 AM
Unknown Object (File)
May 4 2026, 2:25 PM
Unknown Object (File)
May 1 2026, 5:23 PM
Unknown Object (File)
Apr 29 2026, 6:55 AM
Unknown Object (File)
Apr 27 2026, 12:55 PM
Unknown Object (File)
Apr 17 2026, 11:13 AM
Unknown Object (File)
Mar 26 2026, 3:33 AM
Unknown Object (File)
Mar 12 2026, 1:34 AM

Details

Summary

The error message is expected, allow -s to suppress just that one since
it would loosely fall under the definition of "failure to acquire the
lock" described in the manpage for the -s option.

Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

0mp added a subscriber: 0mp.

LGTM.

This revision is now accepted and ready to land.Nov 22 2023, 9:23 AM
allanjude added a subscriber: allanjude.

reviewed-by: allanjude

des added inline comments.
usr.bin/lockf/lockf.c
179–183

This is a bit repetitive, I would prefer if (!silent) warn(); exit();.

kevans added inline comments.
usr.bin/lockf/lockf.c
179–183

Ah, yeah, I like that more. Fixed locally, thanks.

This revision was automatically updated to reflect the committed changes.
kevans marked an inline comment as done.