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:
parent
3ed782c75c
commit
09dd497314
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user