STABLE14-vos-restore-check-doesnt-apply-to-pipes-20071023

as pointed out by hung pham


(cherry picked from commit 79e51892fe1d6fe115a9ae6301f4553e6b6dc07c)
This commit is contained in:
Derrick Brashear 2007-10-23 15:22:27 +00:00
parent db283e564f
commit 07f85591da

View File

@ -342,7 +342,6 @@ WriteData(struct rx_call *call, char *rock)
error = VOLSERBADOP;
goto wfail;
}
}
/* test if we have a valid dump */
hset64(filesize, 0, 0);
USD_SEEK(ufd, filesize, SEEK_END, &currOffset);
@ -354,9 +353,10 @@ WriteData(struct rx_call *call, char *rock)
error = VOLSERBADOP;
goto wfail;
}
/* rewind, we are done */
hset64(filesize, 0, 0);
USD_SEEK(ufd, filesize, SEEK_SET, &currOffset);
/* rewind, we are done */
}
code = SendFile(ufd, call, blksize);
if (code) {
error = code;