diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-01-25 12:32:55 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-01-25 12:32:55 -0500 |
commit | 8fbb75d6cdc4692ca1e480ab077d718489e36353 (patch) | |
tree | f1101fd79a4b5bdbdc2178f287b2f248512e7bd6 | |
parent | 220fb782da63fd648dedb02a7c43c837792b3d4a (diff) | |
download | bfs-8fbb75d6cdc4692ca1e480ab077d718489e36353.tar.xz |
mtab: Always fill in the root fstype
Fixes: 869e4010433c8610ba59f9a6a310df8be228d718
-rw-r--r-- | src/mtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |