1
0
mirror of https://github.com/DoctorWkt/unix-jun72.git synced 2026-04-14 07:50:43 +00:00

- oops, forgot to be explicit about the endian.

This commit is contained in:
tim.newsham
2008-05-03 20:27:30 +00:00
parent f51b1bc2fa
commit 637caf0a5e

View File

@@ -151,7 +151,7 @@ def sMode(m) :
def wrFile(out, fn, d, mode, uid) :
"write out file."
print sMode(mode), uid, fn
meta = pack("HBB", len(d), mode, uid) + fn
meta = pack("<HBB", len(d), mode, uid) + fn
out.write(pad(meta))
out.write(pad(d))