* 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.
This commit is contained in:
@@ -206,7 +206,7 @@ cygwin_attach_handle_to_fd (char *name, int fd, HANDLE handle, mode_t bin,
|
||||
path_conv pc;
|
||||
fhandler_base *res = cygheap->fdtab.build_fhandler_from_name (fd, name, handle,
|
||||
pc);
|
||||
res->init (handle, myaccess, bin);
|
||||
res->init (handle, myaccess, bin ?: pc.binmode ());
|
||||
return fd;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user