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;