diff options
author | Kristof Provost <kp@FreeBSD.org> | 2025-07-01 09:41:12 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2025-07-04 08:31:13 +0000 |
commit | 945ba658d8036102729e3ae7809c56879bf1e259 (patch) | |
tree | 7a24b0649661d35992ec25cccb6ffbe500f026e8 /usr.bin/mkstr/(developers-only) | |
parent | 3c24dfa30bb9e2d90ab643758628b7586fa40f06 (diff) |
Table name and table command require each other as reflected in the
synopsis [-t table -T command [address ...]], so print usage and exit if
only one of them is given.
By moving the inter-dependence check right after option parsing is done,
we can bail out even before opening pf(4) and drop the internal wrapper
pfctl_command_tables() as unneeded indirection with now duplicate checks.
OK sashan
Obtained from: OpenBSD, kn <kn@openbsd.org>, 97699edbc9
Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'usr.bin/mkstr/(developers-only)')
0 files changed, 0 insertions, 0 deletions