diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2019-10-04 11:22:57 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2019-11-18 12:46:29 +0200 |
commit | 1c9b0fcda92dad419fb340c0dc2a840cb017f6a5 (patch) | |
tree | fdc2dcd5a7caa5eec15fc5c4e8e4775d998e0d66 | |
parent | 53db3ce85fb610f8da596eed76eda91f8b69406a (diff) | |
download | rpm-1c9b0fcda92dad419fb340c0dc2a840cb017f6a5.tar.gz |
Fix suspicious condition in selinux plugin
Misplaced parenthesis introduced in commit 148e82833a.
Fixes #872
(cherry picked from commit ab601b882b9d9d8248250111317615db1aa7b7c6)
-rw-r--r-- | plugins/selinux.c | 2 |
1 files changed, 1 insertions, 1 deletions
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", |