aboutsummaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-02-03 03:31:13 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-02-03 03:31:13 +0000
commit4c978631096a97e1cd68dfe40a1583de537112c4 (patch)
tree72450c173aeeb2b13c0965635f1867f76738f42d /findutils
parente968fcd562da08591b0f7990b839174ad93fc7b4 (diff)
downloadbusybox-4c978631096a97e1cd68dfe40a1583de537112c4.tar.gz
assorted fixes for bugs found with randomconfig
Diffstat (limited to 'findutils')
-rw-r--r--findutils/find.c5
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)
}
#endif
+#if ENABLE_FEATURE_FIND_PERM || ENABLE_FEATURE_FIND_MTIME \
+ || ENABLE_FEATURE_FIND_MMIN
static const char* plus_minus_num(const char* str)
{
if (*str == '-' || *str == '+')
str++;
return str;
}
+#endif
static action*** parse_params(char **argv)
{
@@ -486,7 +489,7 @@ static action*** parse_params(char **argv)
ap->subst_count[i] = count_subst(ap->exec_argv[i]);
}
#endif
-#ifdef ENABLE_FEATURE_FIND_USER
+#if ENABLE_FEATURE_FIND_USER
else if (strcmp(arg, "-user") == 0) {
action_user *ap;
if (!*++argv)