aboutsummaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-02-01 18:09:27 +0000
committerNick Mathewson <nickm@torproject.org>2007-02-01 18:09:27 +0000
commit5cb99857bc0633757f60c4b964359c5a03121b28 (patch)
tree707a2ad60ab69f54eb9e4716d0fa9df50c77686f /src/or/dns.c
parent8a9a55251ffe14389a96e99bdcc7af59b0f1c8ba (diff)
downloadtor-5cb99857bc0633757f60c4b964359c5a03121b28.tar.gz
tor-5cb99857bc0633757f60c4b964359c5a03121b28.zip
r11620@catbus: nickm | 2007-02-01 13:06:27 -0500
Call stat() slightly less often; use fstat() when possible. svn:r9472
Diffstat (limited to 'src/or/dns.c')
-rw-r--r--src/or/dns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index 3137a67de8..c86bd9c571 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -1529,8 +1529,8 @@ configure_nameservers(int force)
evdns_set_log_fn(evdns_log_cb);
if (conf_fname) {
if (stat(conf_fname, &st)) {
- log_warn(LD_EXIT, "Unable to stat resolver configuration in '%s'",
- conf_fname);
+ log_warn(LD_EXIT, "Unable to stat resolver configuration in '%s': %s",
+ conf_fname, strerror(errno));
return -1;
}
if (!force && resolv_conf_fname && !strcmp(conf_fname,resolv_conf_fname)