This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cygwin 1.3.3 - fchdir() problem?


I tracked my problem down to the following:
when fchdir is defined and the directory to be created or removed is not a
subdirectory of the current working directory, fileutils try to do an
    open (".", O_RDONLY | O_DIRECTORY)
and that is never successful in Cygwin/Win32.

Sorry to bother you
Uwe

----- Original Message -----
From: "Christopher Faylor" <cgf@redhat.com>
To: <cygwin@cygwin.com>
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]