aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--findutils/find.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/findutils/find.c b/findutils/find.c
index 60b2a75aa..86f787d3f 100644
--- a/findutils/find.c
+++ b/findutils/find.c
@@ -776,7 +776,8 @@ static action*** parse_params(char **argv)
action_context *ap;
ap = ALLOC_ACTION(context);
ap->context = NULL;
- if (selinux_raw_to_trans_context(arg1, &ap->context))
+ /* SELinux headers erroneously declare non-const parameter */
+ if (selinux_raw_to_trans_context((char*)arg1, &ap->context))
bb_perror_msg("%s", arg1);
}
#endif