]> Zhao Yanbai Git Server - minix.git/commitdiff
Added dup_inode to fchdir() call. Still not sure if it is correct now.
authorBen Gras <ben@minix3.org>
Wed, 27 Jul 2005 16:04:26 +0000 (16:04 +0000)
committerBen Gras <ben@minix3.org>
Wed, 27 Jul 2005 16:04:26 +0000 (16:04 +0000)
servers/fs/stadir.c

index dbc2f6d14be33b584dbffa66362d256d4fc90351..5e804f40ce9aeb9ed0f8a783a4097d101a721171 100644 (file)
@@ -34,7 +34,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);
 }