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.24-102-gaaf3045


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  aaf30454802855d439f3d4d1a12fd6b905621029 (commit)
      from  9d84d0e51d0a590024a050b64e04df3214a04a01 (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=aaf30454802855d439f3d4d1a12fd6b905621029

commit aaf30454802855d439f3d4d1a12fd6b905621029
Author: Svante Signell <svante.signell@gmail.com>
Date:   Tue Aug 30 23:06:31 2016 +0200

    hurd: Fix adjtime call with OLDDELTA == NULL
    
    * sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
    it point to a dumb buffer for RPC to fill it.

diff --git a/ChangeLog b/ChangeLog
index 418bdae..d24536b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-08-30  Svante Signell  <svante.signell@gmail.com>
+
+	* sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
+	it point to a dumb buffer for RPC to fill it.
+
 2016-08-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
 
 	* sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): Use ternary
diff --git a/sysdeps/mach/hurd/adjtime.c b/sysdeps/mach/hurd/adjtime.c
index d65b95b..7cfdd53 100644
--- a/sysdeps/mach/hurd/adjtime.c
+++ b/sysdeps/mach/hurd/adjtime.c
@@ -28,11 +28,15 @@ __adjtime (const struct timeval *delta, struct timeval *olddelta)
 {
   error_t err;
   mach_port_t hostpriv;
+  struct timeval dummy;
 
   err = __get_privileged_ports (&hostpriv, NULL);
   if (err)
     return __hurd_fail (EPERM);
 
+  if (olddelta == NULL)
+    olddelta = &dummy;
+
   err = __host_adjust_time (hostpriv,
 			    /* `time_value_t' and `struct timeval' are in
                                fact identical with the names changed.  */

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

Summary of changes:
 ChangeLog                   |    5 +++++
 sysdeps/mach/hurd/adjtime.c |    4 ++++
 2 files changed, 9 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]