From a6336b942302b92f0b65ec35299e7667b9fcbe19 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 14 Sep 2014 20:37:23 -0500 Subject: find -xdev should return mount points, just not contents. --- toys/posix/find.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') diff --git a/toys/posix/find.c b/toys/posix/find.c index 9f679a02..caec80e9 100644 --- a/toys/posix/find.c +++ b/toys/posix/find.c @@ -185,7 +185,7 @@ static int do_find(struct dirtree *new) if (new) { if (new->parent) { if (!dirtree_notdotdot(new)) return 0; - if (TT.xdev && new->st.st_dev != new->parent->st.st_dev) return 0; + if (TT.xdev && new->st.st_dev != new->parent->st.st_dev) recurse = 0; } if (S_ISDIR(new->st.st_mode)) { if (!new->again) { -- cgit v1.2.3