Bug#1142341: Updated patch using POSIX dynamic allocation (nullptr)

Paolo Torelli <[email protected]> Sat, 18 Jul 2026 22:14:17 +0200
Newsgroups gmane.linux.debian.devel.bugs.general,gmane.linux.debian.ports.hurd
Message-ID <[email protected]>
--=-hb9TxMq9BeTyxdlPZgpz
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Here is the updated patch implementing the dynamic allocation with
realpath(path, nullptr) and std::unique_ptr as suggested. It builds
cleanly and fixes the FTBFS.

--=-hb9TxMq9BeTyxdlPZgpz
Content-Disposition: attachment; filename="hurd-path_max-dinamico.patch"
Content-Type: text/x-patch; name="hurd-path_max-dinamico.patch"; charset="UTF-8"
Content-Transfer-Encoding: base64

LS0tIGEvaHR0cGxpYi5oCisrKyBiL2h0dHBsaWIuaApAQCAtMTAzNSw1ICsxMDM1LDkgQEAKICNl
bHNlCi0gIGNoYXIgYnVmW1BBVEhfTUFYXTsKLSAgaWYgKHJlYWxwYXRoKHBhdGgsIGJ1ZikgPT0g
bnVsbHB0cikgeyByZXR1cm4gZmFsc2U7IH0KLSAgcmVzb2x2ZWQgPSBidWY7CisgIGNoYXIqIHJh
d19yZXNvbHZlZF9wYXRoID0gcmVhbHBhdGgocGF0aCwgbnVsbHB0cik7CisgIGlmIChyYXdfcmVz
b2x2ZWRfcGF0aCA9PSBudWxscHRyKXsgcmV0dXJuIGZhbHNlO30KKyAgc3RkOjp1bmlxdWVfcHRy
PGNoYXIsIHZvaWQoKikodm9pZCopPnNhZmVfcGF0aChyYXdfcmVzb2x2ZWRfcGF0aCwgc3RkOjpm
cmVlKTsKKyAgcmVzb2x2ZWQgPSBzYWZlX3BhdGguZ2V0KCk7CiAjZW5kaWYK


--=-hb9TxMq9BeTyxdlPZgpz--