aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-09-14 20:37:23 -0500
committerRob Landley <rob@landley.net>2014-09-14 20:37:23 -0500
commita6336b942302b92f0b65ec35299e7667b9fcbe19 (patch)
tree28ed265f8df5034d61501ee0cb08f5bb0f202d5c /toys/posix
parent8a9907119bf22f2279470be40cf40027dc37018c (diff)
downloadtoybox-a6336b942302b92f0b65ec35299e7667b9fcbe19.tar.gz
find -xdev should return mount points, just not contents.
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/find.c2
1 files changed, 1 insertions, 1 deletions
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) {