Fix panic due to the way change_ruid handles the userinfo.
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 7 May 2004 10:09:25 +0000 (10:09 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 7 May 2004 10:09:25 +0000 (10:09 +0000)
commitb76a38525b2d23b53cd73c6d91ada4fbdbfe73eb
treedf027b2c6abbd981aecaa6ea54ab7c6f29859656
parent2c4af4c44923c20d913269b9e59e8f192c0a24bb
Fix panic due to the way change_ruid handles the userinfo.
The old code assumed that both the structure for the old and the new
user exists. This works fine if change_ruid is called for a real change,
but doesn't if new_ruid == ruid since the old structure == new struct, which
is dropped in the middle.
sys/kern/kern_lockf.c
sys/kern/kern_prot.c
sys/sys/lockf.h