summaryrefslogtreecommitdiffstats
path: root/bftw.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-07-04 17:07:50 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-07-04 17:07:50 -0400
commitd3e64d6e1f905cd67264845c38b38fc6d1bdb088 (patch)
tree52a303272ec29b520b7d9d1f0237290b1e38ab3d /bftw.h
parent43039c98eb6bc2514434fe3b33faa3eb32e75ba3 (diff)
downloadbfs-d3e64d6e1f905cd67264845c38b38fc6d1bdb088.tar.xz
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
Diffstat (limited to 'bftw.h')
-rw-r--r--bftw.h6
1 files changed, 4 insertions, 2 deletions
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,
};
/**