From: David van Moolenbroek Date: Sat, 9 May 2009 17:53:22 +0000 (+0000) Subject: regression fix: vfs lookup passes incorrect chroot information after crossing mountpoints X-Git-Tag: v3.1.4~50 X-Git-Url: http://zhaoyanbai.com/repos/Bv9ARM.ch10.html?a=commitdiff_plain;h=e08b38a5c49dbb6d2aa54615647343203401fe5e;p=minix.git regression fix: vfs lookup passes incorrect chroot information after crossing mountpoints --- diff --git a/servers/vfs/path.c b/servers/vfs/path.c index 00127b9b1..3258d182a 100644 --- a/servers/vfs/path.c +++ b/servers/vfs/path.c @@ -343,7 +343,7 @@ node_details_t *node; dir_ino = dir_vp->v_inode_nr; /* Is the process' root directory on the same partition?, * if so, set the chroot directory too. */ - if (fp->fp_rd->v_dev == fp->fp_wd->v_dev) + if (dir_vp->v_dev == fp->fp_rd->v_dev) root_ino = fp->fp_rd->v_inode_nr; else root_ino = 0;