From 8fbb75d6cdc4692ca1e480ab077d718489e36353 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 25 Jan 2023 12:32:55 -0500 Subject: mtab: Always fill in the root fstype Fixes: 869e4010433c8610ba59f9a6a310df8be228d718 --- src/mtab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3