projects
/
debian
/
dump
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 0.4b41
[debian/dump]
/
restore
/
tape.c
diff --git
a/restore/tape.c
b/restore/tape.c
index e60921bf3b86b1afff5ce0a8666978da04fe89d7..c74e3909f10e46cf1f1ae026573f5d9cfab56bde 100644
(file)
--- a/
restore/tape.c
+++ b/
restore/tape.c
@@
-42,7
+42,7
@@
#ifndef lint
static const char rcsid[] =
#ifndef lint
static const char rcsid[] =
- "$Id: tape.c,v 1.
89 2005/05/02 15:10:46
stelian Exp $";
+ "$Id: tape.c,v 1.
90 2005/06/08 13:24:11
stelian Exp $";
#endif /* not lint */
#include <config.h>
#endif /* not lint */
#include <config.h>
@@
-346,6
+346,7
@@
setup(void)
#endif
FLUSHTAPEBUF();
findtapeblksize();
#endif
FLUSHTAPEBUF();
findtapeblksize();
+ cvtflag = 0;
if (gethead(&spcl) == FAIL) {
blkcnt--; /* push back this block */
blksread--;
if (gethead(&spcl) == FAIL) {
blkcnt--; /* push back this block */
blksread--;
@@
-2412,6
+2413,7
@@
findtapeblksize(void)
errx(1, "Tape read error on first record");
memcpy(&spclpt, tapebuf, TP_BSIZE);
errx(1, "Tape read error on first record");
memcpy(&spclpt, tapebuf, TP_BSIZE);
+ cvtflag = 0;
if (converthead(&spclpt) == FAIL) {
cvtflag++;
if (converthead(&spclpt) == FAIL) {
if (converthead(&spclpt) == FAIL) {
cvtflag++;
if (converthead(&spclpt) == FAIL) {
@@
-2622,7
+2624,7
@@
converthead(struct s_spcl *buf)
if (checksum((int *)buf) == FAIL)
return (FAIL);
if (Bcvt)
if (checksum((int *)buf) == FAIL)
return (FAIL);
if (Bcvt)
- swabst((u_char *)"8i4s
31i528bi192b3
i", (u_char *)buf);
+ swabst((u_char *)"8i4s
1l29i528bi192b4
i", (u_char *)buf);
goto good;
}
memcpy(&u_ospcl.s_ospcl, buf, TP_BSIZE);
goto good;
}
memcpy(&u_ospcl.s_ospcl, buf, TP_BSIZE);