]> Zhao Yanbai Git Server - minix.git/commitdiff
regression fix: vfs lookup passes incorrect chroot information after crossing mountpoints
authorDavid van Moolenbroek <david@minix3.org>
Sat, 9 May 2009 17:53:22 +0000 (17:53 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Sat, 9 May 2009 17:53:22 +0000 (17:53 +0000)
servers/vfs/path.c

index 00127b9b11deab897f2c5fea9e2e625d7c3bd6c7..3258d182a5f05ee6c2a52fe774b778ed34589364 100644 (file)
@@ -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;