aboutsummaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-10-18 19:02:32 +0000
committerEric Andersen <andersen@codepoet.org>1999-10-18 19:02:32 +0000
commitbed30e97005aca748a44806399c646633038daa8 (patch)
treecdba32234f059656b0279b324ae28c742692cd0c /findutils
parent9b5871888989b16f94cbba5dd304ac444def3afd (diff)
downloadbusybox-bed30e97005aca748a44806399c646633038daa8.tar.gz
More fixes
Diffstat (limited to 'findutils')
-rw-r--r--findutils/find.c33
1 files changed, 1 insertions, 32 deletions
diff --git a/findutils/find.c b/findutils/find.c
index c92202b86..1fb219496 100644
--- a/findutils/find.c
+++ b/findutils/find.c
@@ -62,7 +62,7 @@ static int dirAction(const char *fileName, struct stat* statbuf)
while ((entry = readdir(dir)) != NULL) {
char dirName[NAME_MAX];
sprintf(dirName, "%s/%s", fileName, entry->d_name);
- recursiveAction( dirName, TRUE, dereferenceFlag, fileAction, dirAction);
+ recursiveAction( dirName, TRUE, dereferenceFlag, FALSE, fileAction, dirAction);
}
return( TRUE);
}
@@ -123,34 +123,3 @@ int find_main(int argc, char **argv)
dirAction( directory, NULL);
exit(TRUE);
}
-
-
-
-#ifdef foobar
-
-#include "internal.h"
-#include <errno.h>
-#include <stdio.h>
-
-const char find_usage[] = "find dir [pattern]\n"
-"\n"
-"\tFind files.\n";
-
-extern int
-find_main(struct FileInfo * i, int argc, char * * argv)
-{
- i->recursive=1;
- i->processDirectoriesAfterTheirContents=1;
- return monadic_main(i, argc, argv);
-}
-
-extern int
-find_fn(const struct FileInfo * i)
-{
- printf("%s\n",i->source);
-
- return(0);
-}
-
-
-#endif