summaryrefslogtreecommitdiff
path: root/bin
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
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')
-rw-r--r--bin/chio/chio.c5
-rw-r--r--bin/mt/mt.c6
2 files changed, 5 insertions, 6 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)
diff --git a/bin/mt/mt.c b/bin/mt/mt.c
index a5a8c8e565c..b1d271e2321 100644
--- a/bin/mt/mt.c
+++ b/bin/mt/mt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mt.c,v 1.28 2006/06/01 05:42:01 krw Exp $ */
+/* $OpenBSD: mt.c,v 1.29 2006/06/14 02:14:25 krw Exp $ */
/* $NetBSD: mt.c,v 1.14.2.1 1996/05/27 15:12:11 mrg Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mt.c 8.2 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: mt.c,v 1.28 2006/06/01 05:42:01 krw Exp $";
+static char rcsid[] = "$OpenBSD: mt.c,v 1.29 2006/06/14 02:14:25 krw Exp $";
#endif
#endif /* not lint */
@@ -179,7 +179,7 @@ main(int argc, char *argv[])
flags = comp->c_ronly ? O_RDONLY : O_WRONLY | O_CREAT;
if ((mtfd = host ? rmtopen(tape, flags) : opendev(tape, flags,
- OPENDEV_PART | OPENDEV_DRCT, &realtape)) < 0) {
+ OPENDEV_PART, &realtape)) < 0) {
if (errno != 0)
warn("%s", host ? tape : realtape);
exit(2);