OSDN Git Service

* fhandler.cc (fhandler_base::open): Substitute FILE_SUPERSEDE with
authorcorinna <corinna>
Thu, 17 Jun 2004 07:03:07 +0000 (07:03 +0000)
committercorinna <corinna>
Thu, 17 Jun 2004 07:03:07 +0000 (07:03 +0000)
FILE_OVERWRITE_IF.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler.cc

index f9d3725..970deaa 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-17  Corinna Vinschen  <corinna@vinschen.de>
+
+       * fhandler.cc (fhandler_base::open): Substitute FILE_SUPERSEDE with
+       FILE_OVERWRITE_IF.
+
 2004-06-09  Christopher Faylor  <cgf@alum.bu.edu>
 
        * include/cygwin/version.h: REALLY bump dll minor version to 11.
index f319d48..435eb98 100644 (file)
@@ -602,7 +602,7 @@ fhandler_base::open (int flags, mode_t mode)
   if ((flags & O_TRUNC) && ((flags & O_ACCMODE) != O_RDONLY))
     {
       if (flags & O_CREAT)
-       create_disposition = FILE_SUPERSEDE;
+       create_disposition = FILE_OVERWRITE_IF;
       else
        create_disposition = FILE_OVERWRITE;
     }