From 58b43c8d91e03e7bca9b60047e1e79255b2cc12b Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 3 Jul 2002 18:02:54 +0000 Subject: * dtable.cc (cygwin_attach_handle_to_fd): Default to implicit bin mode if none specified. * fhandler.cc (fhandler_base::init): Make bin argument a guarantee rather than a suggestion. * path.cc (path_conv::check): Load flag returned from cygwin_conv_to_win32_path into path_flags. --- winsup/cygwin/fhandler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/fhandler.cc') diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index 1b8d4583e..96da497a0 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -866,7 +866,7 @@ fhandler_base::init (HANDLE f, DWORD a, mode_t bin) flags = O_WRONLY; else if (a == (GENERIC_READ | GENERIC_WRITE)) flags = O_RDWR; - set_flags (flags, bin); + set_flags (flags | bin); set_open_status (); debug_printf ("created new fhandler_base for handle %p, bin %d", f, get_r_binary ()); } -- cgit v1.2.3