X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=dump%2Ftape.c;h=f4133942dd332a771d667c211c7c6c6a46bdea54;hp=b3964a8336512054dc957f16524c27003d928ff1;hb=d339304329df2d458e54c02eac10a27cb31d9cb1;hpb=688653ea7629ee624cd894bfd464233d11399e74 diff --git a/dump/tape.c b/dump/tape.c index b3964a8..f413394 100644 --- a/dump/tape.c +++ b/dump/tape.c @@ -40,7 +40,7 @@ #ifndef lint static const char rcsid[] = - "$Id: tape.c,v 1.12 2000/02/10 09:42:32 stelian Exp $"; + "$Id: tape.c,v 1.13 2000/02/26 01:35:48 stelian Exp $"; #endif /* not lint */ #ifdef __linux__ @@ -732,10 +732,11 @@ restore_check_point: msg("Dumping volume %d on %s\n", tapeno, tape); } #ifdef RDUMP - while ((tapefd = (host ? rmtopen(tape, 2) : - pipeout ? 1 : open(tape, O_WRONLY|O_CREAT, 0666))) < 0) + while ((tapefd = (host ? rmtopen(tape, 2) : pipeout ? + fileno(stdout) : + open(tape, O_WRONLY|O_CREAT, 0666))) < 0) #else - while ((tapefd = (pipeout ? 1 : + while ((tapefd = (pipeout ? fileno(stdout) : open(tape, O_WRONLY|O_CREAT, 0666))) < 0) #endif {