diff options
author | Christopher Faylor <me@cgf.cx> | 2011-06-17 03:00:00 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-06-17 03:00:00 +0400 |
commit | 6f294f8601d3d1b97ef6d67a8c2596001df8157e (patch) | |
tree | 4d033d2707c97eb2c752ca6e4fc5cac113d28f71 /winsup/cygwin/fhandler_console.cc | |
parent | 4d046729d14fa71b685ce9573df207b45916e332 (diff) |
* fhandler_console.cc (fhandler_console::set_unit): Set pc.file_attributes() to
reflect existence.
* fhandler.h (fhandler_pty_common::fhandler_pty_common): Ditto.
* pinfo.cc (_pinfo::set_ctty): Output device numbers in hex.
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index b4a341b81..ce036a361 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -156,6 +156,8 @@ fhandler_console::set_unit () } dev ().parse (devset); + if (devset != FH_ERROR) + pc.file_attributes (FILE_ATTRIBUTE_NORMAL); return created; } |