From a1d72e7cacb3dd90bebc8f97cb5abd930ae409eb Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 25 Feb 1997 02:25:02 +0000 Subject: [PATCH] Fix a minor problem with restore from tapes from big endian machines. This finishes the closing of PR2446 which J"org Wunsch pointed out to me after I closed it. Submitted by: Tor Egge --- sbin/restore/tape.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c index 51a1ac52be23..79fba3f9b2cf 100644 --- a/sbin/restore/tape.c +++ b/sbin/restore/tape.c @@ -1022,8 +1022,11 @@ gethead(buf) } if (checksum((int *)buf) == FAIL) return (FAIL); - if (Bcvt) + if (Bcvt) { swabst((u_char *)"8l4s31l", (u_char *)buf); + swabst((u_char *)"l",(u_char *) &buf->c_level); + swabst((u_char *)"2l",(u_char *) &buf->c_flags); + } goto good; } readtape((char *)(&u_ospcl.s_ospcl));