Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <000901c13fa7$773a91e0$0ee906d5@uhs> From: "Uwe H. Steinfeld" To: References: <009101c13f9d$e694a080$5c6706d5 AT uhs> <20010917135636 DOT A22751 AT redhat DOT com> Subject: Re: cygwin 1.3.3 - fchdir() problem? Date: Mon, 17 Sep 2001 20:35:00 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 But the problem occurs only for the root directory, "rmdir -rf somedir" works. I'll download the sources and try to look at it a bit closer. Uwe ----- Original Message ----- From: "Christopher Faylor" To: Sent: Monday, September 17, 2001 7:56 PM Subject: Re: cygwin 1.3.3 - fchdir() problem? > On Mon, Sep 17, 2001 at 07:25:53PM +0200, Uwe H. Steinfeld wrote: > >Hi, > >I think there is a problem with fchdir() which seems to be new in Cygwin > >1.3.3. > >I recompiled fileutils-4.1. Afterwards commands like "mkdir /somedir" and > >"rm -rf /somedir" do not work anymore. According to the error message > >"cannot open current directory" the commands fail in lib/save-cwd.c, > >function save_cwd(). After removing the define for HAVE_FCHDIR in config.h > >everything works fine. > > Apparently fileutils assumes that one can cd to a directory and then remove > it. As was just recently discussed in this mailing list, you can't do that > on Windows. > > cgf > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/