diff options
author | Rob Landley <rob@landley.net> | 2014-09-14 20:37:23 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-09-14 20:37:23 -0500 |
commit | a6336b942302b92f0b65ec35299e7667b9fcbe19 (patch) | |
tree | 28ed265f8df5034d61501ee0cb08f5bb0f202d5c | |
parent | 8a9907119bf22f2279470be40cf40027dc37018c (diff) | |
download | toybox-a6336b942302b92f0b65ec35299e7667b9fcbe19.tar.gz |
find -xdev should return mount points, just not contents.
-rw-r--r-- | toys/posix/find.c | 2 |
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) { |