From: Ben Gras Date: Fri, 20 Jan 2006 12:43:35 +0000 (+0000) Subject: Fix for fchdir(). X-Git-Tag: v3.1.2a~423 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/static/style.css?a=commitdiff_plain;h=f806a66edface581ff4d36dbd8d5059b98425277;p=minix.git Fix for fchdir(). --- diff --git a/servers/fs/stadir.c b/servers/fs/stadir.c index 1e23f837f..0602a9d1f 100644 --- a/servers/fs/stadir.c +++ b/servers/fs/stadir.c @@ -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); }