This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.22-664-ge42ce0f
- From: sthibaul at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 12 Jan 2016 23:49:25 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.22-664-ge42ce0f
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via e42ce0f45ebf20b4c6f89da605cd62b1cd60a9df (commit)
from fb53a27c57417104069f128963bf6f26dc02b0bd (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=e42ce0f45ebf20b4c6f89da605cd62b1cd60a9df
commit e42ce0f45ebf20b4c6f89da605cd62b1cd60a9df
Author: Flavio Cruz <flaviocruz@gmail.com>
Date: Wed Jan 13 00:48:30 2016 +0100
Fix O_DIRECTORY lookup on trivial translators
* hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
leading slash when `file_name' is "/".
diff --git a/ChangeLog b/ChangeLog
index 6322a67..025db2b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-01-13 Flavio Cruz <flaviocruz@gmail.com>
+
+ * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
+ leading slash when `file_name' is "/".
+
2016-01-12 Joseph Myers <joseph@codesourcery.com>
* bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
diff --git a/hurd/lookup-retry.c b/hurd/lookup-retry.c
index ef256ac..aee2ba8 100644
--- a/hurd/lookup-retry.c
+++ b/hurd/lookup-retry.c
@@ -62,8 +62,15 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
error_t lookup_op (file_t startdir)
{
- while (file_name[0] == '/')
- file_name++;
+ if (file_name[0] == '/' && file_name[1] != '\0')
+ {
+ while (file_name[1] == '/')
+ /* Remove double leading slash. */
+ file_name++;
+ if (file_name[1] != '\0')
+ /* Remove leading slash when we have more than the slash. */
+ file_name++;
+ }
return lookup_error ((*lookup) (startdir, file_name, flags, mode,
&doretry, retryname, result));
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
hurd/lookup-retry.c | 11 +++++++++--
2 files changed, 14 insertions(+), 2 deletions(-)
hooks/post-receive
--
GNU C Library master sources