diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-08-19 19:47:51 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-08-19 19:47:51 +0400 |
commit | 8cb783ba561640f7564a72df6109927ad37de0ae (patch) | |
tree | 04b7711e5178c484963700574365345333188909 /winsup | |
parent | f0eeb667b8e682dcc2ae7181e8e5d99dbf18c4fa (diff) |
* fhandler.cc (fhandler_base::open): Set shared flags to 0 when
opening a tape device.
Diffstat (limited to 'winsup')
-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 756ce54f9..0f82c00da 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 5c5095f59..97b01eb64 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; |