From d3e64d6e1f905cd67264845c38b38fc6d1bdb088 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 4 Jul 2019 17:07:50 -0400 Subject: Make -mount and -xdev do different things POSIX now says -mount should skip the whole mount point, while -xdev should only skip its descendents. C.f. http://austingroupbugs.net/view.php?id=1133 C.f. https://savannah.gnu.org/bugs/?42318 C.f. https://savannah.gnu.org/bugs/?54745 --- bftw.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bftw.h') diff --git a/bftw.h b/bftw.h index 573c5a9..06fdedb 100644 --- a/bftw.h +++ b/bftw.h @@ -184,8 +184,10 @@ enum bftw_flags { BFTW_LOGICAL = 1 << 4, /** Detect directory cycles. */ BFTW_DETECT_CYCLES = 1 << 5, - /** Stay on the same filesystem. */ - BFTW_XDEV = 1 << 6, + /** Skip mount points and their descendents. */ + BFTW_MOUNT = 1 << 6, + /** Skip the descendents of mount points. */ + BFTW_XDEV = 1 << 7, }; /** -- cgit v1.2.3