diff options
author | Christopher Faylor <me@cgf.cx> | 2002-05-31 00:15:22 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-05-31 00:15:22 +0000 |
commit | 5d8c7a56c287079c59491f3dee8e33e05cefdf45 (patch) | |
tree | 7d09f9c81e5466f437202c5a6bc273c3939499bb /winsup/cygwin/fhandler.cc | |
parent | 53e05aecc10a5bc03e6c935a217f5563789bb54c (diff) | |
download | cygnal-5d8c7a56c287079c59491f3dee8e33e05cefdf45.tar.gz cygnal-5d8c7a56c287079c59491f3dee8e33e05cefdf45.tar.bz2 cygnal-5d8c7a56c287079c59491f3dee8e33e05cefdf45.zip |
* fhandler_disk_file.cc (fhandler_disk_file::fstat): Always call fstat_by_name
if fd is not opened to allow fstat_by_name to properly set errno.
* fhandler.cc (binmode): Default to binmode when mode is not known.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r-- | winsup/cygwin/fhandler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index e9af8b4f6..756a74804 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -434,7 +434,7 @@ fhandler_base::open (path_conv *pc, int flags, mode_t mode) else if (fmode & O_TEXT) bin = O_TEXT; else if (get_device () == FH_DISK) - bin = get_w_binary () || get_r_binary (); + bin = get_w_binary () || get_r_binary () || O_BINARY; else bin = (binmode == O_BINARY) || get_w_binary () || get_r_binary (); |