From 0689a4a16f5e80e0c2368f4a68c69ce5f2fdc038 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 13 Feb 2019 11:12:30 -0500 Subject: bftw: Work around d_type being wrong for bind mounts on Linux C.f. https://savannah.gnu.org/bugs/?54913 C.f. https://lkml.org/lkml/2019/2/11/2027 Fixes https://github.com/tavianator/bfs/issues/37 --- bftw.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bftw.h') diff --git a/bftw.h b/bftw.h index 6d1850f..e822523 100644 --- a/bftw.h +++ b/bftw.h @@ -21,6 +21,7 @@ #ifndef BFS_BFTW_H #define BFS_BFTW_H +#include "mtab.h" #include "stat.h" #include @@ -159,6 +160,8 @@ struct bftw_args { int nopenfd; /** Flags that control bftw() behaviour. */ enum bftw_flags flags; + /** The parsed mount table, if available. */ + const struct bfs_mtab *mtab; }; /** -- cgit v1.2.3