summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r--winsup/cygwin/fhandler.cc2
1 files changed, 1 insertions, 1 deletions
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;