[PATCH] Allow unknown root directory.
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 25 Mar 2020 12:56:56 +0000 (12:56 +0000)
committerAurelien Jarno <aurel32@debian.org>
Wed, 25 Mar 2020 12:56:56 +0000 (12:56 +0000)
commit05af96886455a7ec060e799ad002b6d09a1fbf9f
tree5c55daa15fd030aaa8edae864397d10ebf1211db
parent1499f11a7d67a27e09055e7a3bea615f17746791
[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 git-remap_getcwd.diff
sysdeps/mach/hurd/getcwd.c