diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-03 03:31:13 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-03 03:31:13 +0000 |
commit | 4c978631096a97e1cd68dfe40a1583de537112c4 (patch) | |
tree | 72450c173aeeb2b13c0965635f1867f76738f42d /findutils | |
parent | e968fcd562da08591b0f7990b839174ad93fc7b4 (diff) | |
download | busybox-w32-4c978631096a97e1cd68dfe40a1583de537112c4.tar.gz busybox-w32-4c978631096a97e1cd68dfe40a1583de537112c4.tar.bz2 busybox-w32-4c978631096a97e1cd68dfe40a1583de537112c4.zip |
assorted fixes for bugs found with randomconfig
Diffstat (limited to 'findutils')
-rw-r--r-- | findutils/find.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/findutils/find.c b/findutils/find.c index 2decb3608..d71af9ca9 100644 --- a/findutils/find.c +++ b/findutils/find.c | |||
@@ -316,12 +316,15 @@ static int find_type(const char *type) | |||
316 | } | 316 | } |
317 | #endif | 317 | #endif |
318 | 318 | ||
319 | #if ENABLE_FEATURE_FIND_PERM || ENABLE_FEATURE_FIND_MTIME \ | ||
320 | || ENABLE_FEATURE_FIND_MMIN | ||
319 | static const char* plus_minus_num(const char* str) | 321 | static const char* plus_minus_num(const char* str) |
320 | { | 322 | { |
321 | if (*str == '-' || *str == '+') | 323 | if (*str == '-' || *str == '+') |
322 | str++; | 324 | str++; |
323 | return str; | 325 | return str; |
324 | } | 326 | } |
327 | #endif | ||
325 | 328 | ||
326 | static action*** parse_params(char **argv) | 329 | static action*** parse_params(char **argv) |
327 | { | 330 | { |
@@ -486,7 +489,7 @@ static action*** parse_params(char **argv) | |||
486 | ap->subst_count[i] = count_subst(ap->exec_argv[i]); | 489 | ap->subst_count[i] = count_subst(ap->exec_argv[i]); |
487 | } | 490 | } |
488 | #endif | 491 | #endif |
489 | #ifdef ENABLE_FEATURE_FIND_USER | 492 | #if ENABLE_FEATURE_FIND_USER |
490 | else if (strcmp(arg, "-user") == 0) { | 493 | else if (strcmp(arg, "-user") == 0) { |
491 | action_user *ap; | 494 | action_user *ap; |
492 | if (!*++argv) | 495 | if (!*++argv) |