diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2019-03-07 13:36:00 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2019-03-07 13:36:00 +0000 |
| commit | 052d159a8b83f03d7dc5eb31cd9a9b4a6fe3d9da (patch) | |
| tree | f2dd8b09036f9c701fb0d5b71209a9ff8dea7712 /contrib/ntp/libntp/work_fork.c | |
| parent | 16b56c7f4ee6ec20040f485b2774a4ca4ae6e62c (diff) | |
| parent | 360c01464aee3bc4c520898a675f35967db09ac2 (diff) | |
Notes
Diffstat (limited to 'contrib/ntp/libntp/work_fork.c')
| -rw-r--r-- | contrib/ntp/libntp/work_fork.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/ntp/libntp/work_fork.c b/contrib/ntp/libntp/work_fork.c index cce686f239cc..1dd9e13d668f 100644 --- a/contrib/ntp/libntp/work_fork.c +++ b/contrib/ntp/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 |
