summaryrefslogtreecommitdiff
path: root/etc/signify
diff options
context:
space:
mode:
authorcheloha <cheloha@cvs.openbsd.org>2020-09-25 20:24:33 +0000
committercheloha <cheloha@cvs.openbsd.org>2020-09-25 20:24:33 +0000
commitc4f0b52b81b2ba68472d322ca50c6a37780da94c (patch)
tree6818b47a8515ac5aa04cf30afc3161a5317c9633 /etc/signify
parentfdc37bfbbb15ade3fc287e7ee09a1251e2c41fa9 (diff)
setpriority(2): don't treat booleans as scalars
The variable "found" in sys_setpriority() is used as a boolean. We should set it to 1 to indicate that we found the object we were looking for instead of incrementing it. deraadt@ notes that the current code is not buggy, because OpenBSD cannot support anywhere near 2^32 processes, but agrees that incrementing the variable signals the wrong thing to the reader. ok millert@ deraadt@
Diffstat (limited to 'etc/signify')
0 files changed, 0 insertions, 0 deletions