1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-28 13:00:45 +00:00

Second part of the statfs64 patch

this also fixes the $fs_type variable.
This commit is contained in:
Pavel Labath 2011-11-02 19:18:02 +01:00
parent 3ed782c75c
commit 09dd497314

View File

@ -144,11 +144,11 @@ void get_fs_type(const char *path, char *result)
#if defined(HAVE_STRUCT_STATFS_F_FSTYPENAME) || defined(__FreeBSD__) || defined (__OpenBSD__) #if defined(HAVE_STRUCT_STATFS_F_FSTYPENAME) || defined(__FreeBSD__) || defined (__OpenBSD__)
struct statfs s; struct statfs64 s;
if (statfs(path, &s) == 0) { if (statfs64(path, &s) == 0) {
strncpy(result, s.f_fstypename, DEFAULT_TEXT_BUFFER_SIZE); strncpy(result, s.f_fstypename, DEFAULT_TEXT_BUFFER_SIZE);
} else { } else {
NORM_ERR("statfs '%s': %s", path, strerror(errno)); NORM_ERR("statfs64 '%s': %s", path, strerror(errno));
} }
return; return;