From 09dd4973144f158750dce6bacb569775044bbec9 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Wed, 2 Nov 2011 19:18:02 +0100 Subject: [PATCH] Second part of the statfs64 patch this also fixes the $fs_type variable. --- src/fs.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fs.cc b/src/fs.cc index e8fceb69..d52cf275 100644 --- a/src/fs.cc +++ b/src/fs.cc @@ -144,11 +144,11 @@ void get_fs_type(const char *path, char *result) #if defined(HAVE_STRUCT_STATFS_F_FSTYPENAME) || defined(__FreeBSD__) || defined (__OpenBSD__) - struct statfs s; - if (statfs(path, &s) == 0) { + struct statfs64 s; + if (statfs64(path, &s) == 0) { strncpy(result, s.f_fstypename, DEFAULT_TEXT_BUFFER_SIZE); } else { - NORM_ERR("statfs '%s': %s", path, strerror(errno)); + NORM_ERR("statfs64 '%s': %s", path, strerror(errno)); } return;