]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 3560] Fix build when HAVE_DROPROOT is not defined
authorJuergen Perlinger <perlinger@ntp.org>
Wed, 12 Dec 2018 06:37:12 +0000 (07:37 +0100)
committerJuergen Perlinger <perlinger@ntp.org>
Wed, 12 Dec 2018 06:37:12 +0000 (07:37 +0100)
bk: 5c10ac98ZztAdZHyrEypxOTq4x_tFQ

ChangeLog
libntp/work_fork.c

index f381a093cf948c1202162000eaf2d8abbf1a1dcf..2048c82334191ce61a31b6c007e6bc3d271ac90d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+---
+* [Bug 3560] Fix build when HAVE_DROPROOT is not defined <perlinger@ntp.org>
+  - applied patch by Ian Lepore
+
 ---
 (4.2.8p12) 2018/08/14 Released by Harlan Stenn <stenn@ntp.org>
 
index cce686f239cc246b964d6a24e61650787ae8605b..7bfa0c3e166e78cbec2b883ef2993f284710fa13 100644 (file)
@@ -594,7 +594,9 @@ fork_blocking_child(
        init_logging("ntp_intres", 0, FALSE);
        setup_logfile(NULL);
 
+#ifdef HAVE_DROPROOT
        (void) set_user_group_ids();
+#endif
 
        /*
         * And now back to the portable code