[PATCH] Allow unknown root directory.
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 12 Mar 2020 22:47:03 +0000 (22:47 +0000)
committerAurelien Jarno <aurel32@debian.org>
Thu, 12 Mar 2020 22:47:03 +0000 (22:47 +0000)
commitacf02d4f63c8a50eba84cb925a80d61f5fb8d10d
tree800ba43ea19383fb2ad24cd05273797b9f67db71
parentc91e53d62c09e2937a6cd1775694bfe58d4b1a4e
[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