* fix(nativeguest): keep the parent of the guest root inside the rootfs
* fix(nativeguest): keep every .. walk inside the guest root and its mounts
Absolute paths that climb above /, relative paths from the working
directory or any descriptor, and paths that climb out of a mount were
resolved by the kernel from the rootfs folder or the mount's real place,
so /.., chdir("..") from / and fstatat(fd, "../..") listed the app's
files folder. The walk is now resolved in the guest's view first.
* fix(nativeguest): .. from a linked mount ancestor follows the real directory
---------
Co-authored-by: maxjivi05 <6025299+maxjivi05@users.noreply.github.com>
* fix(nativeguest): load glibc locales and iconv modules without proot
glibc opens its locale files and gconv modules with its own internal
open(), which the hook never sees, so every program ran in the C locale
and iconv knew only built-in charsets: Qt warned it could not switch to
UTF-8, setlocale() failed for C.UTF-8 and the app's language, and
iconv -t latin1 was unsupported. The hook now points LOCPATH and
GCONV_PATH at the rootfs; droiddeck-fex keeps x86 guests on their own
gconv modules.
* test(nativeguest): the locale default test ignores the developer's own paths
* fix(native): drive links stored as rootfs paths reach the game library mount
* fix(native): relative drive links reach the game library mount
* fix(native): keep the path after a relative drive link as written
* fix(native): relative links that climb past the rootfs root stop at the guest root
Proton copies default_pfx/dosdevices/z: into each prefix with readlink and
symlink. The relinked target climbs as many folders as default_pfx is deep,
which is one more than a Steam prefix, so natively the kernel left the rootfs
and Z: pointed at the app's files folder. Proot stops ".." at the guest root;
the hook now does the same for links it resolves.
* fix(native): resolve drive links in prefixes stored in bind sources outside the rootfs
* fix(native): detect equal-length mount conversion for bound prefixes