diff options
author | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-08-12 21:14:43 +0300 |
---|---|---|
committer | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-08-12 21:14:43 +0300 |
commit | 8a85a48b9d0ed2b298bcc26dfeb96fa7e31c05c4 (patch) | |
tree | 369ea3730d5b4a00ec81cf60486caebc7e59f2fe /src/common/util.c | |
parent | 44a4464cf6d4dac88c46b8ffdb6ad002d03ade62 (diff) | |
download | tor-8a85a48b9d0ed2b298bcc26dfeb96fa7e31c05c4.tar.gz tor-8a85a48b9d0ed2b298bcc26dfeb96fa7e31c05c4.zip |
attempt to add stat64 filename filters; failed due to getaddrinfo..
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c index 75462b68a1..8408a36f30 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1803,7 +1803,7 @@ file_status(const char *fname) int r; f = tor_strdup(fname); clean_name_for_stat(f); - r = stat(f, &st); + r = stat(sandbox_intern_string(f), &st); tor_free(f); if (r) { if (errno == ENOENT) { @@ -1853,7 +1853,7 @@ check_private_dir(const char *dirname, cpd_check_t check, tor_assert(dirname); f = tor_strdup(dirname); clean_name_for_stat(f); - r = stat(f, &st); + r = stat(sandbox_intern_string(f), &st); tor_free(f); if (r) { if (errno != ENOENT) { |