diff options
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 756ce54..0f82c00 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2004-08-19 Corinna Vinschen <corinna@vinschen.de> + * fhandler.cc (fhandler_base::open): Set shared flags to 0 when + opening a tape device. + +2004-08-19 Corinna Vinschen <corinna@vinschen.de> + * fhandler_socket.cc (fhandler_socket::dup): Increment dtable's need_fixup_before counter on successful dup. * net.cc (cygwin_getpeername): Add file descriptor to debug output. diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index 5c5095f..97b01eb 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -543,7 +543,7 @@ fhandler_base::open (int flags, mode_t mode) int res = 0; HANDLE x; ULONG file_attributes = 0; - ULONG shared = wincap.shared (); + ULONG shared = (get_major () == DEV_TAPE_MAJOR ? 0 : wincap.shared ()); ULONG create_disposition; ULONG create_options; SECURITY_ATTRIBUTES sa = sec_none; |