Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-16 14:41:24 +0400
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-16 14:41:24 +0400
commit838dacaa002c068928c73af379517f07cd01faf6 (patch)
tree4366b5feb0f2eb26c5e52f5a6c476059c2a36c33
parentf848305afc51836fd6e213610c8cbf37e038f433 (diff)
find: fix SELinux-related warning
-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