X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=find.c;h=e814c97b973194370592bfe296e28e0705900214;hb=3a6da8c183142a2681a2382b63e970f457cf807b;hp=a4d056b5404ea2eb8605595d1f55952dfd87e40c;hpb=096370d349fb6be0f5754a9f1d1ca2910d33d78c;p=oweals%2Fbusybox.git diff --git a/find.c b/find.c index a4d056b54..e814c97b9 100644 --- a/find.c +++ b/find.c @@ -24,7 +24,6 @@ * */ -#include "busybox.h" #include #include #include @@ -33,6 +32,7 @@ #include #include #include +#include "busybox.h" 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; + 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"); @@ -178,7 +181,7 @@ int find_main(int argc, char **argv) mtime_days = -mtime_days; #endif } else - usage(find_usage); + show_usage(); } if (firstopt == 1) {