From 8cb783ba561640f7564a72df6109927ad37de0ae Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 19 Aug 2004 15:47:51 +0000 Subject: * fhandler.cc (fhandler_base::open): Set shared flags to 0 when opening a tape device. --- winsup/cygwin/fhandler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/fhandler.cc') 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; -- cgit v1.2.3