summaryrefslogtreecommitdiffstats
path: root/src/mtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mtab.c')
-rw-r--r--src/mtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mtab.c b/src/mtab.c
index 35ae51d..a997183 100644
--- a/src/mtab.c
+++ b/src/mtab.c
@@ -221,7 +221,7 @@ static void bfs_mtab_fill_types(struct bfs_mtab *mtab) {
if (fd >= 0) {
struct bfs_stat parent;
if (bfs_stat(fd, NULL, flags, &parent) == 0) {
- if (parent.dev == sb.dev) {
+ if (parent.dev == sb.dev && parent.ino != sb.ino) {
// Not a mount point any more (or a bind mount, but with the same fstype)
goto next;
}