summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-06-04 01:40:53 +0000
committerChristopher Faylor <me@cgf.cx>2002-06-04 01:40:53 +0000
commite02f1e9c81debf68a7948ffbd3f8177e0ec0fc59 (patch)
tree2191ccba1a3b2b3ab5731d6a33011b3d953a4d40 /winsup/cygwin/path.cc
parente6cd2312d62bc34e430b74e34c2223f38eebe2f3 (diff)
downloadcygnal-e02f1e9c81debf68a7948ffbd3f8177e0ec0fc59.tar.gz
cygnal-e02f1e9c81debf68a7948ffbd3f8177e0ec0fc59.tar.bz2
cygnal-e02f1e9c81debf68a7948ffbd3f8177e0ec0fc59.zip
* fhandler.cc (fhandler_base::open): Don't set binmode if already set. Don't
check for file. Files should already be set. Report on binary mode for debugging. (fhandler_base::fhandler_base): Don't set default binmode here. That's for later. * fhandler_console.cc (fhandler_console::output_tcsetattr): Don't set binmode, ever, for console. * fhandler_disk_file.cc (fhandler_disk_file::open): Always set the binary mode to the value derived from mount table. * path.cc (mount_info::conv_to_win32_path): Default to binmode if path does not translate into anything in the mount table.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 3b8a2d87a..e6a948382 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -1508,7 +1508,7 @@ mount_info::conv_to_win32_path (const char *src_path, char *dst,
if (i >= nmounts)
{
backslashify (pathbuf, dst, 0); /* just convert */
- *flags = 0;
+ *flags = PATH_BINARY; /* Default to binmode */
}
else
{