aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2004-08-19 15:47:51 +0000
committerCorinna Vinschen <corinna@vinschen.de>2004-08-19 15:47:51 +0000
commit8cb783ba561640f7564a72df6109927ad37de0ae (patch)
tree04b7711e5178c484963700574365345333188909 /winsup/cygwin
parentf0eeb667b8e682dcc2ae7181e8e5d99dbf18c4fa (diff)
downloadnewlib-8cb783ba561640f7564a72df6109927ad37de0ae.zip
newlib-8cb783ba561640f7564a72df6109927ad37de0ae.tar.gz
newlib-8cb783ba561640f7564a72df6109927ad37de0ae.tar.bz2
* fhandler.cc (fhandler_base::open): Set shared flags to 0 when
opening a tape device.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler.cc2
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;