From 1c9b0fcda92dad419fb340c0dc2a840cb017f6a5 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 4 Oct 2019 11:22:57 +0300 Subject: Fix suspicious condition in selinux plugin Misplaced parenthesis introduced in commit 148e82833a. Fixes #872 (cherry picked from commit ab601b882b9d9d8248250111317615db1aa7b7c6) --- plugins/selinux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/selinux.c b/plugins/selinux.c index f1caf257c..a51f95e83 100644 --- a/plugins/selinux.c +++ b/plugins/selinux.c @@ -143,7 +143,7 @@ exit: if (sehandle == NULL) return RPMRC_OK; - if ((xx = setexecfilecon(path, "rpm_script_t") == 0)) + if ((xx = setexecfilecon(path, "rpm_script_t")) == 0) rc = RPMRC_OK; rpmlog(loglvl(xx < 0), "setexecfilecon: (%s) %s\n", -- cgit v1.2.1