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 a07dc8ecb632fbe82d4f593228b911c8004a238d..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");