Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm Sender: cygwin-owner@sourceware.cygnus.com Delivered-To: mailing list cygwin@sourceware.cygnus.com Message-ID: <376A3E28.F9324440@cr2a-di.fr> Date: Fri, 18 Jun 1999 14:40:09 +0200 From: Arnaud Bouis X-Mailer: Mozilla 4.5 [fr] (WinNT; I) X-Accept-Language: fr MIME-Version: 1.0 To: "cygwin@sourceware.cygnus.com" Subject: Re: "read" bug References: <376A378E.C784A63F@cr2a-di.fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > > > Looks like there's a bug with the read() function in the Cygwin lib. > > > It always returns "-1" with a "Permission denied" error code, > > > whatever file I try it upon. Ok, the mystery clears a little...I am now getting the same error code with cygwin's opendir(). And yet, the files and directories used have "full access control" for "everyone". I really am no NT expert, but there seems to be some permission problem that escapes me. At any rate, if someone else has ascertained that read() works on NT4 SP4, I'll stop thinking that CYGWIN is the culprit. Takayuki: yes, fd2 is valid. I tested its value, it's worth 3, not 0. Arnaud -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com