From fe0c01d26579d19ddf439fb46ef0bd3cc2bc7f4c Mon Sep 17 00:00:00 2001 From: des Date: Sun, 26 Apr 2015 11:23:26 +0000 Subject: import unbound 1.5.2 --- daemon/remote.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'daemon/remote.c') diff --git a/daemon/remote.c b/daemon/remote.c index a5be6d6..7a8fdb7 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -327,9 +327,13 @@ add_open(const char* ip, int nr, struct listen_port** list, int noproto_is_err, * group as the user we run as. */ if(fd != -1) { +#ifdef HAVE_CHOWN if (cfg->username && cfg->username[0]) chown(ip, cfg->uid, cfg->gid); chmod(ip, (mode_t)(S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP)); +#else + (void)cfg; +#endif } } else { hints.ai_socktype = SOCK_STREAM; -- cgit v1.1