]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix for fchdir().
authorBen Gras <ben@minix3.org>
Fri, 20 Jan 2006 12:43:35 +0000 (12:43 +0000)
committerBen Gras <ben@minix3.org>
Fri, 20 Jan 2006 12:43:35 +0000 (12:43 +0000)
servers/fs/stadir.c

index 1e23f837faadd3ff85f285cc7034bfba2efb26f0..0602a9d1f96a285ebf19e6ea16cdd62ae3409cd6 100644 (file)
@@ -38,6 +38,7 @@ PUBLIC int do_fchdir()
 
        /* Is the file descriptor valid? */
        if ( (rfilp = get_filp(m_in.fd)) == NIL_FILP) return(err_code);
+       dup_inode(rfilp->filp_ino);
        return change_into(&fp->fp_workdir, rfilp->filp_ino);
 }