]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- lowered log_hex blocksize to fit through BSD syslog linesize.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 15 Jul 2008 15:05:12 +0000 (15:05 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 15 Jul 2008 15:05:12 +0000 (15:05 +0000)
- no useless initialisation if getpwnam not available.
- iana, ldns snapshot updated.

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

Makefile.in
contrib/unbound.spec
daemon/unbound.c
doc/Changelog
ldns-src.tar.gz
util/log.c

index d4172fd75fe96ea95cd854324bf9c97c1cae0072..312c706f86cb218ead5f8005f79d312640dff638 100644 (file)
@@ -290,8 +290,8 @@ uninstall:
        @echo "You still need to remove "`dirname $(DESTDIR)$(configfile)`" , $(DESTDIR)$(configfile) by hand"
 
 download_ldns:
-       svn export https://www.nlnetlabs.nl/ldns/svn/trunk/makedist.sh ldns_makedist.sh
-       ./ldns_makedist.sh -s -d https://www.nlnetlabs.nl/ldns/svn/trunk
+       svn export https://www.nlnetlabs.nl/svn/ldns/trunk/makedist.sh ldns_makedist.sh
+       ./ldns_makedist.sh -s -d https://www.nlnetlabs.nl/svn/ldns/trunk
        mv ldns-*_pre_*.tar.gz ldns-src.tar.gz
        rm ldns-*_pre_*.tar.gz.sha1 ldns_makedist.sh
 
index 61bf707d60ad67a0b283b0911d86f41e0ccb8902..51e0a9569a8c658d3654d74c262ff48a9bf8ab4c 100644 (file)
@@ -1,6 +1,6 @@
 Summary: Validating, recursive, and caching DNS resolver
 Name: unbound
-Version: 1.0.0
+Version: 1.0.1
 Release: 1%{?dist}
 License: BSD
 Url: http://www.nlnetlabs.nl/unbound/
index 7e71741802a549c9e2a5dd967c208a535c6cbc53..2c2fcb5c151c349d1ffe59192ed82e445399f72c 100644 (file)
@@ -305,6 +305,7 @@ static void
 do_chroot(struct daemon* daemon, struct config_file* cfg, int debug_mode,
        char** cfgfile)
 {
+#ifdef HAVE_GETPWNAM
        uid_t uid;
        gid_t gid;
        /* initialize, but not to 0 (root) */
@@ -313,7 +314,6 @@ do_chroot(struct daemon* daemon, struct config_file* cfg, int debug_mode,
        log_assert(cfg);
 
        /* daemonize last to be able to print error to user */
-#ifdef HAVE_GETPWNAM
        if(cfg->username && cfg->username[0]) {
                struct passwd *pwd;
                if((pwd = getpwnam(cfg->username)) == NULL)
index 82b14794e395e1dda1348388717694f7e49ce57c..eb61d96e9a0be6391de143a557aa4cd10b3b1076 100644 (file)
@@ -3,6 +3,9 @@
          IPv6 example prefix to AS112 default blocklist.
        - fixup lookup of DS records by client with trustanchor for same.
        - libunbound ub_resolve, fix handling of error condition during setup.
+       - lowered log_hex blocksize to fit through BSD syslog linesize.
+       - no useless initialisation if getpwnam not available.
+       - iana, ldns snapshot updated.
 
 3 July 2008: Wouter
        - Matthijs fixed memory leaks in root hints file reading.
index 72e11acc177d95f46b5fb3b03c150c190a3dfd22..ac99a720c9f18030a342f1a19d7a7578231c181d 100644 (file)
Binary files a/ldns-src.tar.gz and b/ldns-src.tar.gz differ
index 1245f8eff3d4870a93ccb723a9911903ffa52d2f..caa13d4a5d8b32887d4f1250a6f2266cb651bd98 100644 (file)
@@ -242,7 +242,7 @@ log_hex(const char* msg, void* data, size_t length)
        uint8_t* data8 = (uint8_t*)data;
        const char* hexchar = "0123456789ABCDEF";
        char buf[1024+1]; /* alloc blocksize hex chars + \0 */
-       const size_t blocksize = 1024;
+       const size_t blocksize = 512;
        size_t len;
 
        if(length == 0) {