X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=restore%2Ftape.c;h=cd133cb7cf9c63a2b714b1920e6ad2827e2cdd27;hp=344ca3b46fadd47079622653e5fcc07f19ac47d4;hb=80dea6355164a9c0231e8d7f4dcfb3fca0858f7d;hpb=c400d6a2fcb10a45b62fb0af26e6536e8181c508 diff --git a/restore/tape.c b/restore/tape.c index 344ca3b..cd133cb 100644 --- a/restore/tape.c +++ b/restore/tape.c @@ -46,7 +46,7 @@ #ifndef lint static const char rcsid[] = - "$Id: tape.c,v 1.47 2001/09/12 10:21:49 stelian Exp $"; + "$Id: tape.c,v 1.48 2001/11/16 14:09:07 stelian Exp $"; #endif /* not lint */ #include @@ -1929,7 +1929,7 @@ setmagtapein(void) { /* need to know if input is really from a tape */ #ifdef RRESTORE if (host) - magtapein = rmtioctl(MTNOP, 1) != -1; + magtapein = !lflag; else #endif magtapein = ioctl(mt, MTIOCGET, (char *)&mt_stat) == 0;