changeset 1474:715c765cec61

find -xdev should return mount points, just not contents.
author Rob Landley <rob@landley.net>
date Sun, 14 Sep 2014 20:37:23 -0500
parents bff076394df5
children 84727402ee86
files toys/posix/find.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/toys/posix/find.c	Sun Sep 14 19:54:19 2014 -0500
+++ b/toys/posix/find.c	Sun Sep 14 20:37:23 2014 -0500
@@ -185,7 +185,7 @@
   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) {