svn commit: trunk/busybox/findutils

pgf at busybox.net pgf at busybox.net
Thu Sep 6 17:45:18 UTC 2007


Author: pgf
Date: 2007-09-06 10:45:16 -0700 (Thu, 06 Sep 2007)
New Revision: 19796

Log:
fix -xdev behavior in the presence of two or more nested mount points
on the command line, e.g. "find / /boot -xdev".


Modified:
   trunk/busybox/findutils/find.c


Changeset:
Modified: trunk/busybox/findutils/find.c
===================================================================
--- trunk/busybox/findutils/find.c	2007-09-06 16:57:05 UTC (rev 19795)
+++ trunk/busybox/findutils/find.c	2007-09-06 17:45:16 UTC (rev 19796)
@@ -383,9 +383,11 @@
 #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);




More information about the busybox-cvs mailing list