Make sure to byte-swap all of the relevant fields; especially c_flags.
This commit is contained in:
parent
8b0617fdcf
commit
728e20590f
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: tape.c,v 1.22 1996/11/30 18:31:29 cgd Exp $ */
|
/* $NetBSD: tape.c,v 1.23 1996/12/04 03:54:04 mycroft Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1983, 1993
|
* Copyright (c) 1983, 1993
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)tape.c 8.6 (Berkeley) 9/13/94";
|
static char sccsid[] = "@(#)tape.c 8.6 (Berkeley) 9/13/94";
|
||||||
#else
|
#else
|
||||||
static char rcsid[] = "$NetBSD: tape.c,v 1.22 1996/11/30 18:31:29 cgd Exp $";
|
static char rcsid[] = "$NetBSD: tape.c,v 1.23 1996/12/04 03:54:04 mycroft Exp $";
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -1045,7 +1045,7 @@ gethead(buf)
|
||||||
if (checksum((int *)buf) == FAIL)
|
if (checksum((int *)buf) == FAIL)
|
||||||
return (FAIL);
|
return (FAIL);
|
||||||
if (Bcvt)
|
if (Bcvt)
|
||||||
swabst((u_char *)"8l4s31l", (u_char *)buf);
|
swabst((u_char *)"8l4s31l528b1l192b2l", (u_char *)buf);
|
||||||
goto good;
|
goto good;
|
||||||
}
|
}
|
||||||
readtape((char *)(&u_ospcl.s_ospcl));
|
readtape((char *)(&u_ospcl.s_ospcl));
|
||||||
|
|
Loading…
Reference in New Issue