This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: grep on Win9x directories
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-patches at cygwin dot com
- Date: Thu, 19 Dec 2002 20:17:28 -0500
- Subject: Re: grep on Win9x directories
- References: <3.0.5.32.20021219182916.00824490@mail.attbi.com>
- Reply-to: cygwin-patches at cygwin dot com
Wow, you're quick. I was just checking into this. I had a breakpoint set
and everything.
Please check this in, Pierre. It's a nice addition to 1.3.18.
cgf
On Thu, Dec 19, 2002 at 06:29:16PM -0500, Pierre A. Humblet wrote:
>
>
>2002-12-19 Pierre Humblet <pierre.humblet@ieee.org>
>
> * fhandler.cc (fhandler_base::open): Use "flags" rather than "mode" in
> Win9X directory code.
>
>Index: fhandler.cc
>===================================================================
>RCS file: /cvs/src/src/winsup/cygwin/fhandler.cc,v
>retrieving revision 1.142
>diff -u -p -r1.142 fhandler.cc
>--- fhandler.cc 14 Dec 2002 19:11:42 -0000 1.142
>+++ fhandler.cc 19 Dec 2002 23:20:53 -0000
>@@ -463,9 +463,9 @@ fhandler_base::open (path_conv *pc, int
> {
> if (!wincap.can_open_directories () && pc && pc->isdir ())
> {
>- if (mode & (O_CREAT | O_EXCL) == (O_CREAT | O_EXCL))
>+ if (flags & (O_CREAT | O_EXCL) == (O_CREAT | O_EXCL))
> set_errno (EEXIST);
>- else if (mode & (O_WRONLY | O_RDWR))
>+ else if (flags & (O_WRONLY | O_RDWR))
> set_errno (EISDIR);
> else
> set_nohandle (true);