View | Details | Raw Unified | Return to bug 734 | Differences between
and this patch

Collapse All | Expand All

(-)b/daemon/unbound.c (-1 / +1 lines)
 Lines 511-517   perform_setup(struct daemon* daemon, struct config_file* cfg, int debug_mode, Link Here 
511
		if(cfg->username && cfg->username[0] && cfg_uid != (uid_t)-1) {
511
		if(cfg->username && cfg->username[0] && cfg_uid != (uid_t)-1) {
512
#  ifdef HAVE_CHOWN
512
#  ifdef HAVE_CHOWN
513
			if(chown(daemon->pidfile, cfg_uid, cfg_gid) == -1) {
513
			if(chown(daemon->pidfile, cfg_uid, cfg_gid) == -1) {
514
				log_err("cannot chown %u.%u %s: %s",
514
				verbose(VERB_QUERY, "cannot chown %u.%u %s: %s",
515
					(unsigned)cfg_uid, (unsigned)cfg_gid,
515
					(unsigned)cfg_uid, (unsigned)cfg_gid,
516
					daemon->pidfile, strerror(errno));
516
					daemon->pidfile, strerror(errno));
517
			}
517
			}

Return to bug 734