diff options
Diffstat (limited to 'winsup/cygwin/fhandler_virtual.cc')
-rw-r--r-- | winsup/cygwin/fhandler_virtual.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_virtual.cc b/winsup/cygwin/fhandler_virtual.cc index a055434..fb1ed7d 100644 --- a/winsup/cygwin/fhandler_virtual.cc +++ b/winsup/cygwin/fhandler_virtual.cc @@ -207,7 +207,7 @@ fhandler_virtual::open (path_conv *, int flags, mode_t mode) set_execable_p (not_executable); set_socket_p (false); - set_flags (flags & ~O_TEXT, O_BINARY); + set_flags ((flags & ~O_TEXT) | O_BINARY); set_nohandle (true); |