diff options
-rw-r--r-- | sbin/restore/tape.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c index 6bf713215e8..8f4660da801 100644 --- a/sbin/restore/tape.c +++ b/sbin/restore/tape.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tape.c,v 1.39 2011/06/27 23:40:57 tedu Exp $ */ +/* $OpenBSD: tape.c,v 1.40 2012/07/14 08:58:18 halex Exp $ */ /* $NetBSD: tape.c,v 1.26 1997/04/15 07:12:25 lukem Exp $ */ /* @@ -195,7 +195,7 @@ setup(void) Vprintf(stdout, "Verify tape and initialize maps\n"); #ifdef RRESTORE if (host) - mt = rmtopen(magtape, 0); + mt = rmtopen(magtape, O_RDONLY); else #endif if (pipein) @@ -358,7 +358,7 @@ again: #ifdef RRESTORE if (host) - mt = rmtopen(magtape, 0); + mt = rmtopen(magtape, O_RDONLY); else #endif mt = open(magtape, O_RDONLY); |