From e08b38a5c49dbb6d2aa54615647343203401fe5e Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Sat, 9 May 2009 17:53:22 +0000 Subject: [PATCH] regression fix: vfs lookup passes incorrect chroot information after crossing mountpoints --- servers/vfs/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.44.0