aboutsummaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
authorCristian Toader <cristian.matei.toader@gmail.com>2013-08-12 21:14:43 +0300
committerCristian Toader <cristian.matei.toader@gmail.com>2013-08-12 21:14:43 +0300
commit8a85a48b9d0ed2b298bcc26dfeb96fa7e31c05c4 (patch)
tree369ea3730d5b4a00ec81cf60486caebc7e59f2fe /src/or/dns.c
parent44a4464cf6d4dac88c46b8ffdb6ad002d03ade62 (diff)
downloadtor-8a85a48b9d0ed2b298bcc26dfeb96fa7e31c05c4.tar.gz
tor-8a85a48b9d0ed2b298bcc26dfeb96fa7e31c05c4.zip
attempt to add stat64 filename filters; failed due to getaddrinfo..
Diffstat (limited to 'src/or/dns.c')
-rw-r--r--src/or/dns.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index edcf92e5b3..6dc0c05f9c 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -24,6 +24,7 @@
#include "relay.h"
#include "router.h"
#include "ht.h"
+#include "../common/sandbox.h"
#ifdef HAVE_EVENT2_DNS_H
#include <event2/event.h>
#include <event2/dns.h>
@@ -1477,7 +1478,7 @@ configure_nameservers(int force)
evdns_set_log_fn(evdns_log_cb);
if (conf_fname) {
- if (stat(conf_fname, &st)) {
+ if (stat(sandbox_intern_string(conf_fname), &st)) {
log_warn(LD_EXIT, "Unable to stat resolver configuration in '%s': %s",
conf_fname, strerror(errno));
goto err;