projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gz_open and gz_close were left in, even when BB_FEATURE_TAR_GZIP was disabled.
[oweals/busybox.git]
/
find.c
diff --git
a/find.c
b/find.c
index a4d056b5404ea2eb8605595d1f55952dfd87e40c..e814c97b973194370592bfe296e28e0705900214 100644
(file)
--- a/
find.c
+++ b/
find.c
@@
-24,7
+24,6
@@
*
*/
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <unistd.h>
#include <dirent.h>
#include <stdio.h>
#include <unistd.h>
#include <dirent.h>
@@
-33,6
+32,7
@@
#include <fnmatch.h>
#include <time.h>
#include <ctype.h>
#include <fnmatch.h>
#include <time.h>
#include <ctype.h>
+#include "busybox.h"
static char *pattern;
static char *pattern;
@@
-143,6
+143,9
@@
int find_main(int argc, char **argv)
for (i = firstopt; i < argc; i++) {
if (strcmp(argv[i], "-follow") == 0)
dereference = TRUE;
for (i = firstopt; i < argc; i++) {
if (strcmp(argv[i], "-follow") == 0)
dereference = TRUE;
+ else if (strcmp(argv[i], "-print") == 0) {
+ ;
+ }
else if (strcmp(argv[i], "-name") == 0) {
if (++i == argc)
error_msg_and_die("option `-name' requires an argument");
else if (strcmp(argv[i], "-name") == 0) {
if (++i == argc)
error_msg_and_die("option `-name' requires an argument");
@@
-178,7
+181,7
@@
int find_main(int argc, char **argv)
mtime_days = -mtime_days;
#endif
} else
mtime_days = -mtime_days;
#endif
} else
-
usage(find_usage
);
+
show_usage(
);
}
if (firstopt == 1) {
}
if (firstopt == 1) {