]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #734: Do not log an error when the PID file cannot be chown'ed.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 12 Jan 2016 08:04:42 +0000 (08:04 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 12 Jan 2016 08:04:42 +0000 (08:04 +0000)
  Patch from Simon Deziel.

git-svn-id: file:///svn/unbound/trunk@3599 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/unbound.c
doc/Changelog

index 0ceee538c756c55b9dfb7b4c209cb2a71c5898d7..429d148428fab8d56eab520c2c4fd42d9a789227 100644 (file)
@@ -511,7 +511,7 @@ perform_setup(struct daemon* daemon, struct config_file* cfg, int debug_mode,
                if(cfg->username && cfg->username[0] && cfg_uid != (uid_t)-1) {
 #  ifdef HAVE_CHOWN
                        if(chown(daemon->pidfile, cfg_uid, cfg_gid) == -1) {
-                               log_err("cannot chown %u.%u %s: %s",
+                               verbose(VERB_QUERY, "cannot chown %u.%u %s: %s",
                                        (unsigned)cfg_uid, (unsigned)cfg_gid,
                                        daemon->pidfile, strerror(errno));
                        }
index 91b9d2822e95008741bfcf311224b0a404ec478e..8e1d9e46bcb0e99c1f0da8b88f2682117a2edbdc 100644 (file)
@@ -1,3 +1,7 @@
+12 January 2016: Wouter
+       - Fix #734: Do not log an error when the PID file cannot be chown'ed.
+         Patch from Simon Deziel.
+
 11 January 2016: Wouter
        - Fix test if -pthreads unused to use better grep for portability.