aboutsummaryrefslogtreecommitdiff
path: root/src/lib/util/disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/disk.c')
-rw-r--r--src/lib/util/disk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/util/disk.c b/src/lib/util/disk.c
index fd0621e3e..d5e4f0e30 100644
--- a/src/lib/util/disk.c
+++ b/src/lib/util/disk.c
@@ -151,17 +151,17 @@ get_size_rec (void *cls, const char *fn)
151 ! (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) 151 ! (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64)
152 struct stat64 buf; 152 struct stat64 buf;
153 153
154 if (0 != stat64 (fn, &buf)) 154 if (0 != lstat64 (fn, &buf))
155 { 155 {
156 LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_DEBUG, "stat64", fn); 156 LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_DEBUG, "lstat64", fn);
157 return GNUNET_SYSERR; 157 return GNUNET_SYSERR;
158 } 158 }
159#else 159#else
160 struct stat buf; 160 struct stat buf;
161 161
162 if (0 != stat (fn, &buf)) 162 if (0 != lstat (fn, &buf))
163 { 163 {
164 LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_DEBUG, "stat", fn); 164 LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_DEBUG, "lstat", fn);
165 return GNUNET_SYSERR; 165 return GNUNET_SYSERR;
166 } 166 }
167#endif 167#endif