aboutsummaryrefslogtreecommitdiff
path: root/findutils/find.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-10-27 23:42:25 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-10-27 23:42:25 +0000
commit155a25478340968f01da4c24c144600f910c323f (patch)
tree13d20b31e817dcff5124498ca0bec2cdf9781014 /findutils/find.c
parent491278531cfa3089ca16ce8a832accfd9771f1e9 (diff)
downloadbusybox-w32-155a25478340968f01da4c24c144600f910c323f.tar.gz
busybox-w32-155a25478340968f01da4c24c144600f910c323f.tar.bz2
busybox-w32-155a25478340968f01da4c24c144600f910c323f.zip
recursive_action: add depth param
chmod: match coreutils versus following links git-svn-id: svn://busybox.net/trunk/busybox@16462 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'findutils/find.c')
-rw-r--r--findutils/find.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/findutils/find.c b/findutils/find.c
index 62cb5d7eb..8618f3a97 100644
--- a/findutils/find.c
+++ b/findutils/find.c
@@ -56,7 +56,7 @@ static int num_matches;
56static int exec_opt; 56static int exec_opt;
57#endif 57#endif
58 58
59static int fileAction(const char *fileName, struct stat *statbuf, void* junk) 59static int fileAction(const char *fileName, struct stat *statbuf, void* junk, int depth)
60{ 60{
61#ifdef CONFIG_FEATURE_FIND_XDEV 61#ifdef CONFIG_FEATURE_FIND_XDEV
62 if (S_ISDIR(statbuf->st_mode) && xdev_count) { 62 if (S_ISDIR(statbuf->st_mode) && xdev_count) {
@@ -307,12 +307,12 @@ int find_main(int argc, char **argv)
307 307
308 if (firstopt == 1) { 308 if (firstopt == 1) {
309 if (!recursive_action(".", TRUE, dereference, FALSE, fileAction, 309 if (!recursive_action(".", TRUE, dereference, FALSE, fileAction,
310 fileAction, NULL)) 310 fileAction, NULL, 0))
311 status = EXIT_FAILURE; 311 status = EXIT_FAILURE;
312 } else { 312 } else {
313 for (i = 1; i < firstopt; i++) { 313 for (i = 1; i < firstopt; i++) {
314 if (!recursive_action(argv[i], TRUE, dereference, FALSE, fileAction, 314 if (!recursive_action(argv[i], TRUE, dereference, FALSE, fileAction,
315 fileAction, NULL)) 315 fileAction, NULL, 0))
316 status = EXIT_FAILURE; 316 status = EXIT_FAILURE;
317 } 317 }
318 } 318 }