[PATCH] Allow unknown root directory.
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 8 Oct 2022 15:53:16 +0000 (16:53 +0100)
committerHelmut Grohne <helmut@subdivi.de>
Sat, 8 Oct 2022 15:53:16 +0000 (16:53 +0100)
commit8d96fdbde1bf9aec4916d472965d2645e7f430fc
tree346acd43237e135635aca7dd521fde8180ae1ce8
parentc19f31550a40386c5cdf5acce8864c8022e82294
[PATCH] Allow unknown root directory.

To be efficient, the remap translator simply returns ports from the underlying
filesystem, and thus the root directory found through browsing '..' is the
underlying root, not the remap root. This should not be a reason for getcwd to
fail.

* sysdeps/mach/hurd/getcwd.c (_hurd_canonicalize_directory_name_internal): Do
not remove the heading slash if we got an unknown root directory.
(__getcwd): Do not fail with EGRATUITOUS if we got an unknown root directory.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-remap_getcwd.diff
sysdeps/mach/hurd/getcwd.c