checkdirs() was being passed the wrong mount point, resulting in a panic
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 24 Jan 2007 01:25:47 +0000 (01:25 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 24 Jan 2007 01:25:47 +0000 (01:25 +0000)
commit77480a979a773f48263a6fd446ab7bc96b753ca4
tree94683d5b0880ffb11f033a8ef6571eaf2bf628a8
parenteb1b9f95df8461745094f0db450e295eaf12a78f
checkdirs() was being passed the wrong mount point, resulting in a panic
when mounting over an already existing mountpoint and improperly adjusting
the current or root directory for processes when finding a matching ncp
whether they were relative to the old mount or not.

Rewrite and document checkdirs() to fix the problems.

Reported-by: "Vincent Labrecque" <vnc@hush.ai>
sys/kern/vfs_syscalls.c