grep on Win9x directories
Christopher Faylor
cgf@redhat.com
Thu Dec 19 17:17:00 GMT 2002
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);
More information about the Cygwin-patches
mailing list