CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2020/09/25 14:24:32

Modified files:
        sys/kern       : kern_resource.c 

Log message:
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@

Reply via email to