delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/10/14/09:26:19

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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: <earnie?boyd AT yahoo DOT com>
Message-ID: <3BC9925D.A23EB8EC@yahoo.com>
Date: Sun, 14 Oct 2001 09:25:49 -0400
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: CD List <Cygwin-Developers AT Cygwin DOT Com>
X-Mailer: Mozilla 4.77 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: CD List <Cygwin-Developers AT Cygwin DOT Com>
Subject: fchdir(fd) defect

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019