diff options
author | Eric Andersen <andersen@codepoet.org> | 1999-10-18 19:02:32 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 1999-10-18 19:02:32 +0000 |
commit | bed30e97005aca748a44806399c646633038daa8 (patch) | |
tree | cdba32234f059656b0279b324ae28c742692cd0c /findutils/find.c | |
parent | 9b5871888989b16f94cbba5dd304ac444def3afd (diff) | |
download | busybox-w32-bed30e97005aca748a44806399c646633038daa8.tar.gz busybox-w32-bed30e97005aca748a44806399c646633038daa8.tar.bz2 busybox-w32-bed30e97005aca748a44806399c646633038daa8.zip |
More fixes
Diffstat (limited to 'findutils/find.c')
-rw-r--r-- | findutils/find.c | 33 |
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) | |||
62 | while ((entry = readdir(dir)) != NULL) { | 62 | while ((entry = readdir(dir)) != NULL) { |
63 | char dirName[NAME_MAX]; | 63 | char dirName[NAME_MAX]; |
64 | sprintf(dirName, "%s/%s", fileName, entry->d_name); | 64 | sprintf(dirName, "%s/%s", fileName, entry->d_name); |
65 | recursiveAction( dirName, TRUE, dereferenceFlag, fileAction, dirAction); | 65 | recursiveAction( dirName, TRUE, dereferenceFlag, FALSE, fileAction, dirAction); |
66 | } | 66 | } |
67 | return( TRUE); | 67 | return( TRUE); |
68 | } | 68 | } |
@@ -123,34 +123,3 @@ int find_main(int argc, char **argv) | |||
123 | dirAction( directory, NULL); | 123 | dirAction( directory, NULL); |
124 | exit(TRUE); | 124 | exit(TRUE); |
125 | } | 125 | } |
126 | |||
127 | |||
128 | |||
129 | #ifdef foobar | ||
130 | |||
131 | #include "internal.h" | ||
132 | #include <errno.h> | ||
133 | #include <stdio.h> | ||
134 | |||
135 | const char find_usage[] = "find dir [pattern]\n" | ||
136 | "\n" | ||
137 | "\tFind files.\n"; | ||
138 | |||
139 | extern int | ||
140 | find_main(struct FileInfo * i, int argc, char * * argv) | ||
141 | { | ||
142 | i->recursive=1; | ||
143 | i->processDirectoriesAfterTheirContents=1; | ||
144 | return monadic_main(i, argc, argv); | ||
145 | } | ||
146 | |||
147 | extern int | ||
148 | find_fn(const struct FileInfo * i) | ||
149 | { | ||
150 | printf("%s\n",i->source); | ||
151 | |||
152 | return(0); | ||
153 | } | ||
154 | |||
155 | |||
156 | #endif | ||