mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- lowered log_hex blocksize to fit through BSD syslog linesize.
- no useless initialisation if getpwnam not available. - iana, ldns snapshot updated. git-svn-id: file:///svn/unbound/trunk@1150 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
8459b5f55f
commit
4263f2a692
6 changed files with 8 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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/
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
BIN
ldns-src.tar.gz
BIN
ldns-src.tar.gz
Binary file not shown.
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue