In unveil_add_vnode() refactor code around the indexes i and j. In one
authorclaudio <claudio@openbsd.org>
Wed, 23 Jun 2021 14:09:01 +0000 (14:09 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 23 Jun 2021 14:09:01 +0000 (14:09 +0000)
commit1bef2b773d616a2ffeac1f9e7c51cb3de9db0203
treedac273fedb7a8e14f3cf25f60793d821d5e29102
parent6c4b29ed20a1c82cbb1f1b97fbdc492d80f474be
In unveil_add_vnode() refactor code around the indexes i and j. In one
place the wrong index is used resulting in re-evaluating all unveil nodes.
Also loop over over all but the last (just added vnode) -- again there is
no need to re-evaluate the cover of the just added unveil.
OK anton@ semarie@
sys/kern/kern_unveil.c