This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]