This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.26-288-g6547ec0


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  6547ec0ad8451d72e43ba4ea38c2300c67eb501a (commit)
      from  492cbbed865ac98e4faa31d7714feeb09f5c418a (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=6547ec0ad8451d72e43ba4ea38c2300c67eb501a

commit 6547ec0ad8451d72e43ba4ea38c2300c67eb501a
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Sep 3 19:44:07 2017 +0200

    hurd: fix resolv/tst-resolv-res_init-skeleton.c build
    
    	* resolv/tst-resolv-res_init-skeleton.c (run_res_init)
    	[!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.

diff --git a/ChangeLog b/ChangeLog
index 824f19a..f2e61b7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -35,6 +35,8 @@
 	RWF_NOWAIT): Define to 0 if undefined already.
 	(do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
 	boils down to 0.
+	* resolv/tst-resolv-res_init-skeleton.c (run_res_init)
+	[!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
 
 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
 
diff --git a/resolv/tst-resolv-res_init-skeleton.c b/resolv/tst-resolv-res_init-skeleton.c
index 3b7b412..a1bf110 100644
--- a/resolv/tst-resolv-res_init-skeleton.c
+++ b/resolv/tst-resolv-res_init-skeleton.c
@@ -341,11 +341,15 @@ run_res_init (void *closure)
     setenv ("RES_OPTIONS", ctx->t->res_options, 1);
   if (ctx->t->hostname != NULL)
     {
+#ifdef CLONE_NEWUTS
       /* This test needs its own namespace, to avoid changing the host
          name for the parent, too.  */
       TEST_VERIFY_EXIT (unshare (CLONE_NEWUTS) == 0);
       if (sethostname (ctx->t->hostname, strlen (ctx->t->hostname)) != 0)
         FAIL_EXIT1 ("sethostname (\"%s\"): %m", ctx->t->hostname);
+#else
+      FAIL_UNSUPPORTED ("clone (CLONE_NEWUTS) not supported");
+#endif
     }
 
   switch (ctx->init)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                             |    2 ++
 resolv/tst-resolv-res_init-skeleton.c |    4 ++++
 2 files changed, 6 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]