mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 20:39:33 +08:00
* fhandler_raw.cc (fhandler_dev_raw::open): Allow O_EXCL flag, as on
Linux.
This commit is contained in:
parent
fe0cb31137
commit
93c9cdc1b0
@ -1,3 +1,8 @@
|
||||
2012-10-12 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler_raw.cc (fhandler_dev_raw::open): Allow O_EXCL flag, as on
|
||||
Linux.
|
||||
|
||||
2012-10-11 Christopher Faylor <me.cygwin2012@cgf.cx>
|
||||
|
||||
* fhandler_termios.cc (fhandler_termios::line_edit): Don't manipulate
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user