* fhandler.cc (fhandler_base::open): Substitute FILE_SUPERSEDE with

FILE_OVERWRITE_IF.
This commit is contained in:
Corinna Vinschen 2004-06-17 07:03:09 +00:00
parent 3adfd50973
commit f6d9664b63
2 changed files with 6 additions and 1 deletions

View 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> 2004-06-09 Christopher Faylor <cgf@alum.bu.edu>
* include/cygwin/version.h: REALLY bump dll minor version to 11. * include/cygwin/version.h: REALLY bump dll minor version to 11.

View 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_TRUNC) && ((flags & O_ACCMODE) != O_RDONLY))
{ {
if (flags & O_CREAT) if (flags & O_CREAT)
create_disposition = FILE_SUPERSEDE; create_disposition = FILE_OVERWRITE_IF;
else else
create_disposition = FILE_OVERWRITE; create_disposition = FILE_OVERWRITE;
} }