aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.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/config.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/config.c')
-rw-r--r--src/or/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index e53c2888f1..e1b7b4e47f 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -6121,7 +6121,7 @@ remove_file_if_very_old(const char *fname, time_t now)
#define VERY_OLD_FILE_AGE (28*24*60*60)
struct stat st;
- if (stat(fname, &st)==0 && st.st_mtime < now-VERY_OLD_FILE_AGE) {
+ if (stat(sandbox_intern_string(fname), &st)==0 && st.st_mtime < now-VERY_OLD_FILE_AGE) {
char buf[ISO_TIME_LEN+1];
format_local_iso_time(buf, st.st_mtime);
log_notice(LD_GENERAL, "Obsolete file %s hasn't been modified since %s. "