checkdirs() was being passed the wrong mount point, resulting in a panic
commit7af474161612be62a62f5d0b9594c09231f3bec6
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 24 Jan 2007 01:25:47 +0000 (24 01:25 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 24 Jan 2007 01:25:47 +0000 (24 01:25 +0000)
tree14614d86fc78cc45fd8dd56e391b43a6c6f5c194
parentb2805e420bf4e9d36f44a79e803ef3e1a488fcf7
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