From 838dacaa002c068928c73af379517f07cd01faf6 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 16 Aug 2007 10:41:24 +0000 Subject: [PATCH] find: fix SELinux-related warning --- findutils/find.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.25.1