summaryrefslogtreecommitdiffstats
path: root/src/mtab.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-01-25 12:32:55 -0500
committerTavian Barnes <tavianator@tavianator.com>2023-01-25 12:32:55 -0500
commit8fbb75d6cdc4692ca1e480ab077d718489e36353 (patch)
treef1101fd79a4b5bdbdc2178f287b2f248512e7bd6 /src/mtab.c
parent220fb782da63fd648dedb02a7c43c837792b3d4a (diff)
downloadbfs-8fbb75d6cdc4692ca1e480ab077d718489e36353.tar.xz
mtab: Always fill in the root fstype
Fixes: 869e4010433c8610ba59f9a6a310df8be228d718
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;
}