From 728e20590fb8e47433626b8b30b215d070d209ea Mon Sep 17 00:00:00 2001 From: mycroft Date: Wed, 4 Dec 1996 03:54:04 +0000 Subject: [PATCH] Make sure to byte-swap all of the relevant fields; especially c_flags. --- sbin/restore/tape.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c index e0c37a53879c..7e4af0fc60c7 100644 --- a/sbin/restore/tape.c +++ b/sbin/restore/tape.c @@ -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 @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = "@(#)tape.c 8.6 (Berkeley) 9/13/94"; #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 /* not lint */ @@ -1045,7 +1045,7 @@ gethead(buf) if (checksum((int *)buf) == FAIL) return (FAIL); if (Bcvt) - swabst((u_char *)"8l4s31l", (u_char *)buf); + swabst((u_char *)"8l4s31l528b1l192b2l", (u_char *)buf); goto good; } readtape((char *)(&u_ospcl.s_ospcl));