summaryrefslogtreecommitdiff
path: root/bin/chio
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2006-06-14 02:14:26 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2006-06-14 02:14:26 +0000
commit6ea6e03762ee36a24db0bc69b56ba34203ee5b89 (patch)
treeff67a31342dbaa9265e9bbf676d2fdb4d0d7fb44 /bin/chio
parentbcd3df9fcd4019e9afcad7e619151591ab1a6cfa (diff)
Nuke only two uses of OPENDEV_DRCT in tree. Nuke OPENDEV_DRCT. Long
marked obsolete since the opendev() behaviour it turned on is now the default. 'it can go' deraadt@ 'no API of mine has ever made it into a standard' downsj@
Diffstat (limited to 'bin/chio')
-rw-r--r--bin/chio/chio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/chio/chio.c b/bin/chio/chio.c
index 49180f25cc4..93b1c45adee 100644
--- a/bin/chio/chio.c
+++ b/bin/chio/chio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: chio.c,v 1.19 2006/06/13 19:35:17 deraadt Exp $ */
+/* $OpenBSD: chio.c,v 1.20 2006/06/14 02:14:25 krw Exp $ */
/* $NetBSD: chio.c,v 1.1.1.1 1996/04/03 00:34:38 thorpej Exp $ */
/*
@@ -670,8 +670,7 @@ check_source_drive(int unit)
* Try to make it accessible by doing an mt offline.
*/
tapedev = parse_tapedev(_PATH_CH_CONF, changer_name, unit);
- mtfd = opendev(tapedev, O_RDONLY, OPENDEV_PART | OPENDEV_DRCT,
- NULL);
+ mtfd = opendev(tapedev, O_RDONLY, OPENDEV_PART, NULL);
if (mtfd == -1)
err(1, "%s drive %d (%s): open", changer_name, unit, tapedev);
if (ioctl(mtfd, MTIOCTOP, &mtoffl) == -1)