Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-10-12 17:59:45 +0400
committerCorinna Vinschen <corinna@vinschen.de>2012-10-12 17:59:45 +0400
commit93c9cdc1b0cf91b83c31e9bc52a2e94f07a79ad5 (patch)
treea8b9152f2f95bf4acc24560ebd75b4ecdcb79e1d /winsup/cygwin/fhandler_raw.cc
parentfe0cb311370003fc5839e592c79b460aa841a63b (diff)
* fhandler_raw.cc (fhandler_dev_raw::open): Allow O_EXCL flag, as on
Linux.
Diffstat (limited to 'winsup/cygwin/fhandler_raw.cc')
-rw-r--r--winsup/cygwin/fhandler_raw.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_raw.cc b/winsup/cygwin/fhandler_raw.cc
index 3419be375..a03f7aafd 100644
--- a/winsup/cygwin/fhandler_raw.cc
+++ b/winsup/cygwin/fhandler_raw.cc
@@ -1,7 +1,7 @@
/* fhandler_raw.cc. See fhandler.h for a description of the fhandler classes.
- Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2011
- Red Hat, Inc.
+ Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2011,
+ 2012 Red Hat, Inc.
This file is part of Cygwin.
@@ -59,7 +59,7 @@ int
fhandler_dev_raw::open (int flags, mode_t)
{
/* Check for illegal flags. */
- if (get_major () != DEV_TAPE_MAJOR && (flags & (O_APPEND | O_EXCL)))
+ if (get_major () != DEV_TAPE_MAJOR && (flags & O_APPEND))
{
set_errno (EINVAL);
return 0;