delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/18/12:22:01

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <003701c1405c$138a8aa0$de6306d5@uhs>
From: "Uwe H. Steinfeld" <usteinfeld AT gmx DOT net>
To: "Corinna Vinschen" <cygwin AT cygwin DOT com>
References: <009101c13f9d$e694a080$5c6706d5 AT uhs> <20010917135636 DOT A22751 AT redhat DOT com> <000901c13fb3$667abc20$35e606d5 AT uhs> <20010917222901 DOT I10081 AT cygbert DOT vinschen DOT de> <00a101c14031$7a3bd040$816136d5 AT uhs> <20010918173523 DOT D28304 AT cygbert DOT vinschen DOT de>
Subject: Re: cygwin 1.3.3 - fchdir() problem?
Date: Tue, 18 Sep 2001 18:07:06 +0200
MIME-Version: 1.0
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

----- Original Message -----
From: "Corinna Vinschen" <cygwin AT cygwin DOT com>
To: "cygwin" <cygwin AT cygwin DOT com>
Sent: Tuesday, September 18, 2001 5:35 PM
Subject: Re: cygwin 1.3.3 - fchdir() problem?


> On Tue, Sep 18, 2001 at 12:50:12PM +0200, Uwe H. Steinfeld wrote:
> > open (somedir, O_RDONLY) always gives error 13 (permission denied) if
> > somedir exists, and error 2 (no such file or directory) otherwise.
> >
> > This is standard Win32 (mis-)behavior. From MS documentation:
> > A return value of -1 indicates an error, in which case errno is set to
one
> > of the following values:
> > EACCES Tried to open read-only file for writing, or file's sharing mode
does
> > not allow specified operations, or given path is directory
>
> Also quoted from MSDN:
>
>     Windows NT/2000 or later: You can obtain a handle to a directory by
>     setting the FILE_FLAG_BACKUP_SEMANTICS flag. A directory handle can
>     be passed to some functions in place of a file handle.
>
> Did you actually try it using the below test application in Cygwin?
> Or are you talking about 9x?  Then you've lost, naturally.
>
> Corinna

Corinna,
I used your test application - but it's 9x.
I've lost.

Uwe

(In the meantime I solved the original problem in fileutils by removing the
check for fchdir() in configure.)


--
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/

- Raw text -


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