setthrname() should return EINVAL, not ENAMETOOLONG, when the
authorguenther <guenther@openbsd.org>
Mon, 9 Jan 2023 02:12:13 +0000 (02:12 +0000)
committerguenther <guenther@openbsd.org>
Mon, 9 Jan 2023 02:12:13 +0000 (02:12 +0000)
commit574d834c63d1b766bafc91fce3df6b3780b61144
treeae6fcaa9484a364610ab9c7636e60ac4e30ea157
parentd321a433913a7aa4d3397c0e3ca9f1d92ec3e66b
setthrname() should return EINVAL, not ENAMETOOLONG, when the
input is too long.

ok mpi@
sys/kern/kern_prot.c