import unbound 1.5.2

This commit is contained in:
Dag-Erling Smørgrav
2015-04-26 11:23:26 +00:00
parent 54dd3272da
commit d3348d437f
59 changed files with 3593 additions and 2691 deletions
+4
View File
@@ -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;