From 90f0f97ccba34efa6ac8d7d4d77db5d473e8da32 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Fri, 30 Aug 2019 01:08:09 +0200 Subject: hurd getcwd: 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. --- ChangeLog | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index c3cae2a11e..d2ec5d5ac0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,12 @@ -2019-08-30 Richard Braun +2019-08-30 Samuel Thibault + + + * 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. + +2019-08-30 Richard Braun * hurd/hurdselect.c (_hurd_select): Always call __io_select with no timeout. -- cgit v1.2.3