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, Jul 25, 11:23 PM
Unknown Object (File)
Mon, Jul 20, 9:22 PM
Unknown Object (File)
Mon, Jul 20, 1:48 AM
Unknown Object (File)
Sun, Jul 19, 1:05 PM
Unknown Object (File)
Sun, Jul 19, 3:29 AM
Unknown Object (File)
Sat, Jul 18, 5:24 PM
Unknown Object (File)
Sat, Jul 4, 8:18 AM
Unknown Object (File)
Sat, Jul 4, 5:55 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 54559
Build 51448: arc lint + arc unit

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
182

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

kevans added inline comments.
usr.bin/lockf/lockf.c
182

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.