This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
grep on Win9x directories
- From: "Pierre A. Humblet" <Pierre dot Humblet at ieee dot org>
- To: cygwin-patches at cygwin dot com
- Date: Thu, 19 Dec 2002 18:29:16 -0500
- Subject: grep on Win9x directories
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);