summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-07-01 19:03:26 +0000
committerChristopher Faylor <me@cgf.cx>2002-07-01 19:03:26 +0000
commit1bc9effd28c85148d788043f3d99c657e9dda3d4 (patch)
tree4764a48aae2aaabb652fd1f3b19b2a899b540348 /winsup/cygwin/path.cc
parentef9647e524e8f571947632c6815ff37fc972b150 (diff)
downloadcygnal-1bc9effd28c85148d788043f3d99c657e9dda3d4.tar.gz
cygnal-1bc9effd28c85148d788043f3d99c657e9dda3d4.tar.bz2
cygnal-1bc9effd28c85148d788043f3d99c657e9dda3d4.zip
* fhandler_clipboard.c (fhandler_dev_clipboard::open): Force text mode.
* fhandler_console.cc (fhandler_console::open): *Really* force binary mode rather than make it optional. * fhandler_proc.cc (fhandler_proc::open): Ditto. * fhandler_process.cc (fhandler_process::open): Ditto. * fhandler_random.cc (fhandler_dev_random::fhandler_dev_random): Ditto. * fhandler_raw.cc (fhandler_dev_raw::open): Ditto. * fhandler_registry.cc (fhandler_registry::open): Ditto. * fhandler_tty.cc (fhandler_tty_slave::open): Ditto. * fhandler_virtual.cc (fhandler_virtual::open): Ditto. * fhandler_windows.cc (fhandler_windows::open): Ditto. * fhandler_zero.cc (fhandler_dev_zero::open): Ditto. * net.cc (fdsock): Ditto. * path.cc (set_flags): Add more debugging.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index cfa3ef241..2e8626b2d 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -1338,7 +1338,15 @@ set_flags (unsigned *flags, unsigned val)
{
*flags = val;
if (!(*flags & PATH_BINARY))
- *flags = PATH_TEXT;
+ {
+ *flags |= PATH_TEXT;
+ debug_printf ("flags: text (%p)", *flags & (PATH_TEXT | PATH_BINARY));
+ }
+ else
+ {
+ *flags |= PATH_BINARY;
+ debug_printf ("flags: binary (%p)", *flags & (PATH_TEXT | PATH_BINARY));
+ }
}
/* conv_to_win32_path: Ensure src_path is a pure Win32 path and store