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:
imp 1997-02-25 02:25:02 +00:00
parent 85eab8d10d
commit 396eccf8b4

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