DSCF.co.uk

PC32

A ColorForth compiler and editor for x86-64
git clone https://dscf.co.uk/clone/PC32.git
Home | Back | Log | Files | Refs | Issues

commit 4bb9c84924876fd8f27dbd3a06aefe8901074350
parent dd5e936e3511ed8c35d6c535205825da81a28544
Author: Julian <tide@dscf.co.uk>
Date:   Sat, 21 Nov 2026 09:55:11 -0500

fixed m32root.py tarball extraction error, it should work with python 3.14 and older now

Diffstat:
Mtools/mk32root.py | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tools/mk32root.py b/tools/mk32root.py @@ -110,7 +110,11 @@ def deb_extract(fn, root): if (m.issym() or m.islnk()) and not CAN_SYMLINK: LINKS.append((m.name.lstrip("./"), m.linkname, m.islnk())) continue - t.extract(m, root) + # 'tar' filter: still blocks escaping root, but keeps absolute symlinks + # (fixlinks() rewrites them to relative later); py3.14's default 'data' + # filter raises AbsoluteLinkError on them. + if hasattr(tarfile, "tar_filter"): t.extract(m, root, filter="tar") + else: t.extract(m, root) return i += size + (size & 1) raise SystemExit("no data.tar in " + fn)