summaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
authorDenis Vlasenko2007-09-29 23:55:30 +0000
committerDenis Vlasenko2007-09-29 23:55:30 +0000
commit43f0a0bb3a178794ac9fa3f5010db680c5d1b018 (patch)
tree7f3c2fae714d8260c100fbad6627c7ae4e8c43fe /findutils
parente755e827f7c8ecb21787a4369d7afdeda54d112b (diff)
downloadbusybox-43f0a0bb3a178794ac9fa3f5010db680c5d1b018.zip
busybox-43f0a0bb3a178794ac9fa3f5010db680c5d1b018.tar.gz
apply all post-1.7.1 patches, set version to 1.7.21_7_2
Diffstat (limited to 'findutils')
-rw-r--r--findutils/find.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/findutils/find.c b/findutils/find.c
index 2158468..f3167a0 100644
--- a/findutils/find.c
+++ b/findutils/find.c
@@ -383,9 +383,11 @@ static int fileAction(const char *fileName, struct stat *statbuf, void *userData
#if ENABLE_FEATURE_FIND_XDEV
if (S_ISDIR(statbuf->st_mode) && xdev_count) {
for (i = 0; i < xdev_count; i++) {
- if (xdev_dev[i] != statbuf->st_dev)
- return SKIP;
+ if (xdev_dev[i] == statbuf->st_dev)
+ break;
}
+ if (i == xdev_count)
+ return SKIP;
}
#endif
i = exec_actions(actions, fileName, statbuf);