summaryrefslogtreecommitdiff
path: root/libntp/work_fork.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2019-03-07 13:01:16 +0000
committerCy Schubert <cy@FreeBSD.org>2019-03-07 13:01:16 +0000
commit360c01464aee3bc4c520898a675f35967db09ac2 (patch)
treec244e3f6baebbb7d13d8dd0d4ee570773cb3c579 /libntp/work_fork.c
parentc7f4d2332394d5600fe4e14c530ede36b0ff29b0 (diff)
Notes
Diffstat (limited to 'libntp/work_fork.c')
-rw-r--r--libntp/work_fork.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libntp/work_fork.c b/libntp/work_fork.c
index cce686f239cc..1dd9e13d668f 100644
--- a/libntp/work_fork.c
+++ b/libntp/work_fork.c
@@ -89,7 +89,9 @@ netwrite(
}
-int set_user_group_ids(void);
+#if defined(HAVE_DROPROOT)
+extern int set_user_group_ids(void);
+#endif
/* === functions === */
/*
@@ -594,7 +596,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