summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/df.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/df.c b/src/df.c
index a311f7550..7db3e763c 100644
--- a/src/df.c
+++ b/src/df.c
@@ -259,7 +259,7 @@ show_dev (const char *disk, const char *mount_point, const char *fstype)
double blocks_percent_used;
uintmax_t blocks_used;
- if (fsu.fsu_blocks == 0)
+ if (fsu.fsu_blocks == 0 || fsu.fsu_bavail == (unsigned long) -1)
{
blocks_used = 0;
fsu.fsu_bavail = 0;