diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2011-05-05 19:51:49 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2011-05-05 19:51:49 +0000 |
commit | 1d39f8e79bd9e223686755c3459c2dead358030e (patch) | |
tree | f1957354c115c24d99ee8ddc5a0dfe8dfc7bf9f7 | |
parent | 81a36e54e25959336ad8d3ae4a0bea26d7a0b6d2 (diff) |
Oops. Put back OPENDEV_PART so 'eject cd0' works again. Pointed out
by miod@.
-rw-r--r-- | bin/mt/mt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/mt/mt.c b/bin/mt/mt.c index e3733073202..9d3dd66c90b 100644 --- a/bin/mt/mt.c +++ b/bin/mt/mt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mt.c,v 1.34 2011/04/24 01:13:55 krw Exp $ */ +/* $OpenBSD: mt.c,v 1.35 2011/05/05 19:51:48 krw Exp $ */ /* $NetBSD: mt.c,v 1.14.2.1 1996/05/27 15:12:11 mrg Exp $ */ /* @@ -211,7 +211,8 @@ main(int argc, char *argv[]) } flags = comp->c_ronly ? O_RDONLY : O_WRONLY | O_CREAT; - if ((mtfd = _rmtopendev(tape, flags, 0, &realtape)) < 0) { + /* NOTE: OPENDEV_PART required since cd(4) devices go through here. */ + if ((mtfd = _rmtopendev(tape, flags, OPENDEV_PART, &realtape)) < 0) { if (errno != 0) warn("%s", host ? tape : realtape); exit(2); |