summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/imaxabs.c
diff options
context:
space:
mode:
authorkn <kn@openbsd.org>2019-04-18 21:58:59 +0000
committerkn <kn@openbsd.org>2019-04-18 21:58:59 +0000
commit4650ad2af4d9ff037e73a193abfcdabd3c0e1ca5 (patch)
tree569b59c154f5c5d869ef07b6ba00f5cf42240092 /lib/libc/stdlib/imaxabs.c
parentAdd tests for sshd -T -C with Match. (diff)
downloadwireguard-openbsd-4650ad2af4d9ff037e73a193abfcdabd3c0e1ca5.tar.xz
wireguard-openbsd-4650ad2af4d9ff037e73a193abfcdabd3c0e1ca5.zip
Fix table definition parsing as unprivileged user
revision 1.689 introduced warn_duplicate_tables() unconditionally, breaking the parser on tables withs insufficient permissions to open pf(4): $ echo 'table <t>' | pfctl -nf- pfctl: pfr_get_tables: Bad file descriptor So simply check whether pfctl is able to get the table list first. If not, instead of silently avoiding namespace collision checks, print a brief notice iff `-v' is given to help finding duplicate definitions by hand: $ echo 'table <t>' | ./obj/pfctl -vnf- table <t> stdin:1: skipping duplicate table checks for <t> Reported by Rivo Nurges, thanks! OK benno sashan
Diffstat (limited to 'lib/libc/stdlib/imaxabs.c')
0 files changed, 0 insertions, 0 deletions