Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com X-Apparently-From: Message-ID: <3BC9925D.A23EB8EC@yahoo.com> Date: Sun, 14 Oct 2001 09:25:49 -0400 From: Earnie Boyd Reply-To: CD List X-Mailer: Mozilla 4.77 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: CD List Subject: fchdir(fd) defect Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I've discovered that if chdir("/some/dir/foo") fd=open(".", O_RDONLY) chdir("/some/dir/bar") fchdir(fd) will change to "some/dir/bar" not to "some/dir/foo". The reason for this is simply that the open stores the "." in the fd table and not the absolute directory name it points to. I don't have a patch for this yet, I wanted to alert to the problem before 1.3.4 released. Feel free to beat me to the punch with the patch. Earnie. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com