diff options
author | Eric Andersen <andersen@codepoet.org> | 1999-12-03 09:19:54 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 1999-12-03 09:19:54 +0000 |
commit | b186d980d6060195d01048bb3a083739137b6c21 (patch) | |
tree | f64b2d63850be12ce3081b2000784aa57ac29656 /findutils | |
parent | 77619b9dda2b0550fea519fba05f7d9790ef7eaf (diff) | |
download | busybox-w32-b186d980d6060195d01048bb3a083739137b6c21.tar.gz busybox-w32-b186d980d6060195d01048bb3a083739137b6c21.tar.bz2 busybox-w32-b186d980d6060195d01048bb3a083739137b6c21.zip |
Stuf
Diffstat (limited to 'findutils')
-rw-r--r-- | findutils/find.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/findutils/find.c b/findutils/find.c index 0f1f5f189..40a508f05 100644 --- a/findutils/find.c +++ b/findutils/find.c | |||
@@ -51,8 +51,15 @@ static int fileAction(const char *fileName, struct stat* statbuf) | |||
51 | { | 51 | { |
52 | if (pattern==NULL) | 52 | if (pattern==NULL) |
53 | fprintf(stdout, "%s\n", fileName); | 53 | fprintf(stdout, "%s\n", fileName); |
54 | else if (find_match((char*)fileName, pattern, TRUE) == TRUE) | 54 | else { |
55 | fprintf(stdout, "%s\n", fileName); | 55 | char* tmp = strrchr( fileName, '/'); |
56 | if (tmp == NULL) | ||
57 | tmp = (char*)fileName; | ||
58 | else | ||
59 | tmp++; | ||
60 | if (check_wildcard_match(tmp, pattern) == TRUE) | ||
61 | fprintf(stdout, "%s\n", fileName); | ||
62 | } | ||
56 | return( TRUE); | 63 | return( TRUE); |
57 | } | 64 | } |
58 | 65 | ||