X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=restore%2Ftape.c;h=7debfd16a054bae6ac243c8f1914e0279cde2505;hp=bd411b945bf298467144dee8d1a297d160ee102c;hb=c910e1c0e24b3f10483e624adb6b9c2a004e39dc;hpb=e17af4c1a919e1d1456d6079682b63c7df947a7f diff --git a/restore/tape.c b/restore/tape.c index bd411b9..7debfd1 100644 --- a/restore/tape.c +++ b/restore/tape.c @@ -42,7 +42,7 @@ #ifndef lint static const char rcsid[] = - "$Id: tape.c,v 1.101 2011/05/05 16:05:40 stelian Exp $"; + "$Id: tape.c,v 1.102 2011/06/08 15:40:53 stelian Exp $"; #endif /* not lint */ #include @@ -586,7 +586,7 @@ again: fprintf(stderr, "otherwise enter tape name (default: %s) ", magtape); #endif (void) fflush(stderr); - if (fgets(buf, TP_BSIZE, terminal)) + if (!fgets(buf, TP_BSIZE, terminal)) exit(1); if (feof(terminal)) exit(1);