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:
parent
91f3c635fd
commit
a1d72e7cac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23096
@ -1022,8 +1022,11 @@ 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 *)"8l4s31l", (u_char *)buf);
|
||||||
|
swabst((u_char *)"l",(u_char *) &buf->c_level);
|
||||||
|
swabst((u_char *)"2l",(u_char *) &buf->c_flags);
|
||||||
|
}
|
||||||
goto good;
|
goto good;
|
||||||
}
|
}
|
||||||
readtape((char *)(&u_ospcl.s_ospcl));
|
readtape((char *)(&u_ospcl.s_ospcl));
|
||||||
|
Loading…
Reference in New Issue
Block a user