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 <Tor.Egge@idt.ntnu.no>
This commit is contained in:
Warner Losh 1997-02-25 02:25:02 +00:00
parent 91f3c635fd
commit a1d72e7cac
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23096

View File

@ -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));