summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/df.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/df.c b/src/df.c
index 3979dac53..ad49e4244 100644
--- a/src/df.c
+++ b/src/df.c
@@ -612,7 +612,9 @@ show_point (const char *point, const struct stat *statp)
}
}
- if (best_match && !STREQ (best_match->me_type, "lofs"))
+ if (best_match && !STREQ (best_match->me_type, "lofs")
+ && stat (best_match->me_mountdir, &disk_stats) == 0
+ && disk_stats.st_dev == statp->st_dev)
{
me = best_match;
goto show_me;