Re: [chrony-dev] [GIT] chrony/chrony.git branch, master, updated. 2.2-48-gfe50212

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


> On 9/12/2015, at 7:37 AM, Bryan Christianson <bryan@xxxxxxxxxxxxx> wrote:
> 
> 
>> On 9/12/2015, at 6:08 AM, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
>> 
>> On Tue, Dec 08, 2015 at 06:04:00PM +0100, git@xxxxxxxxxxxxx wrote:
>>> Summary of changes:
>>> configure    |   18 ++++++++----
>>> main.c       |    5 +++-
>>> privops.c    |   90 +++++++++++++++++++++++++++++++++++++++++++++++-----------
>>> privops.h    |    5 ++++
>>> sys_linux.c  |    2 +-
>>> sys_macosx.c |    5 +---
>>> sys_netbsd.c |    3 ++
>>> 7 files changed, 99 insertions(+), 29 deletions(-)
>> 
>> Bryan, can you please check if it still works for you on Mac OS X?
> 
> There is an initialisation problem in privops.c
> helper_fd now has a default value of 0 where previously was -1
> 
> static int helper_fd;
> static pid_t helper_pid;
> 
> static int
> have_helper(void)
> {
>  return helper_fd >= 0;
> }
> 
Fixed with


diff --git a/sys_macosx.c b/sys_macosx.c
index c1592dd..dc0de57 100644
--- a/sys_macosx.c
+++ b/sys_macosx.c
@@ -437,6 +437,7 @@ void SYS_MacOSX_DropRoot(uid_t uid, gid_t gid)
 void
 SYS_MacOSX_Initialise(void)
 {
+  PRV_Initialise();
   clock_initialise();
 
   lcl_RegisterSystemDrivers(read_frequency, set_frequency,

--

Bryan Christianson
bryan@xxxxxxxxxxxxx




--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/