aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_hash.c
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-03-19 10:48:51 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-03-19 10:48:51 +0000
commit41d15781f67e4250a53b7512afd29221fe2b7fdc (patch)
tree657a7cd7a327aad0e7598b3d28cecc0d5cd95cd4 /src/util/crypto_hash.c
parentfb1ebd430a77a956f9fced8045e0d57fd237f1c0 (diff)
-LRN: calculate file size for single files when needed and use GNUNET_DISK_file_size instead of STAT
git-svn-id: https://gnunet.org/svn/gnunet@20600 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/util/crypto_hash.c')
-rw-r--r--src/util/crypto_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/crypto_hash.c b/src/util/crypto_hash.c
index aaf5175d7d..57e37f3fd2 100644
--- a/src/util/crypto_hash.c
+++ b/src/util/crypto_hash.c
@@ -220,7 +220,7 @@ GNUNET_CRYPTO_hash_file (enum GNUNET_SCHEDULER_Priority priority,
return NULL;
}
fhc->bsize = blocksize;
- if (GNUNET_OK != GNUNET_DISK_file_size (filename, &fhc->fsize, GNUNET_NO))
+ if (GNUNET_OK != GNUNET_DISK_file_size (filename, &fhc->fsize, GNUNET_NO, GNUNET_YES))
{
GNUNET_free (fhc->filename);
GNUNET_free (fhc);