summaryrefslogtreecommitdiff
path: root/findutils/find.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-02-03 03:31:13 +0000
committerDenis Vlasenko2007-02-03 03:31:13 +0000
commit4c978631096a97e1cd68dfe40a1583de537112c4 (patch)
tree72450c173aeeb2b13c0965635f1867f76738f42d /findutils/find.c
parente968fcd562da08591b0f7990b839174ad93fc7b4 (diff)
downloadbusybox-4c978631096a97e1cd68dfe40a1583de537112c4.zip
busybox-4c978631096a97e1cd68dfe40a1583de537112c4.tar.gz
assorted fixes for bugs found with randomconfig
Diffstat (limited to 'findutils/find.c')
-rw-r--r--findutils/find.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/findutils/find.c b/findutils/find.c
index 2decb36..d71af9c 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)