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:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user