#ifndef lint
static const char rcsid[] =
- "$Id: restore.c,v 1.19 2001/12/24 12:31:12 stelian Exp $";
+ "$Id: restore.c,v 1.20 2001/12/24 15:53:41 stelian Exp $";
#endif /* not lint */
#include <config.h>
*/
while (curfile.ino > last) {
curfile.action = SKIP;
- getvol((long)0);
+ if (!pipein)
+ getvol((long)0);
if (curfile.ino == maxino) {
next = lowerbnd(next);
while (next < curfile.ino) {
* Stelian Pop <pop@noos.fr>, 1999-2000
* Stelian Pop <pop@noos.fr> - AlcĂ´ve <www.alcove.fr>, 2000
*
- * $Id: restore.h,v 1.19 2001/11/16 14:09:07 stelian Exp $
+ * $Id: restore.h,v 1.20 2001/12/24 15:53:41 stelian Exp $
*/
/*
extern time_t dumpdate; /* time that this dump was made */
extern char command; /* opration being performed */
extern FILE *terminal; /* file descriptor for the terminal input */
+extern int pipein; /* input is from a pipe */
extern char *tmpdir; /* name of temp directory */
extern int oldinofmt; /* reading tape with old format inodes */
extern int Bcvt; /* need byte swapping on inodes and dirs */
#ifndef lint
static const char rcsid[] =
- "$Id: tape.c,v 1.49 2001/12/24 12:31:12 stelian Exp $";
+ "$Id: tape.c,v 1.50 2001/12/24 15:53:41 stelian Exp $";
#endif /* not lint */
#include <config.h>
#endif /* USE_QFA */
static long fssize = MAXBSIZE;
static int mt = -1;
-static int pipein = 0;
+int pipein = 0;
static int magtapein = 0; /* input is from magtape */
static char magtape[MAXPATHLEN];
static char magtapeprefix[MAXPATHLEN];