aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/fhandler_tape.cc7
2 files changed, 12 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 1ede3cd..24500a1 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,9 @@
+Tue May 16 23:39:00 2000 Corinna Vinschen <corinna@vinschen.de>
+
+ Patch suggested by John Rowley <wjr@bgs.ac.uk>
+ * fhandler_tape.cc (fhandler_dev_tape::ioctl): Check
+ for filemark feature on MTWEOF operation.
+
Tue May 16 11:49:13 2000 Christopher Faylor <cgf@cygnus.com>
* include/cygwin/in.h (AF_INET6): Use correct in6_addr struct.
diff --git a/winsup/cygwin/fhandler_tape.cc b/winsup/cygwin/fhandler_tape.cc
index 7b25e9f..e6e2b4c 100644
--- a/winsup/cygwin/fhandler_tape.cc
+++ b/winsup/cygwin/fhandler_tape.cc
@@ -263,7 +263,12 @@ fhandler_dev_tape::ioctl (unsigned int cmd, void *buf)
ret = tape_set_pos (TAPE_SPACE_RELATIVE_BLOCKS, -op->mt_count);
break;
case MTWEOF:
- ret = tape_write_marks (TAPE_FILEMARKS, op->mt_count);
+ if (tape_get_feature (TAPE_DRIVE_WRITE_FILEMARKS))
+ ret = tape_write_marks (TAPE_FILEMARKS, op->mt_count);
+ else if (tape_get_feature (TAPE_DRIVE_WRITE_LONG_FMKS))
+ ret = tape_write_marks (TAPE_LONG_FILEMARKS, op->mt_count);
+ else
+ ret = tape_write_marks (TAPE_SHORT_FILEMARKS, op->mt_count);
break;
case MTREW:
ret = tape_set_pos (TAPE_REWIND, 0);