I checked the current Debian package and the PATH_MAX issue is still
present, but the original patch is not safe as-is: it introduces an
out-of-bounds write with
name[strlen(name)+1] = '\0';
instead of terminating the copied string in-bounds.
I am attaching a smaller replacement patch instead. It keeps the
existing basename/title handling unchanged and only defines PATH_MAX
when the platform does not provide it.
I also built the package successfully on amd64 with this patch applied
using:
dpkg-buildpackage -us -uc -b
I tried to validate it in a local Debian GNU/Hurd QEMU image as well,
but that guest currently stalls before reaching a usable login/SSH
state, so Hurd-side build confirmation is still pending.
Thanks,