From 2a735c6cbd006fc80f11191764b9336a15511068 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Apr 23 2020 14:26:58 +0000 Subject: Fix testing for wrong variable in selinux plugin debug log The strerror() case couldn't be reached as we were testing for the wrong rc, spotted by covscan. --- diff --git a/plugins/selinux.c b/plugins/selinux.c index 3c9d9e4..accd474 100644 --- a/plugins/selinux.c +++ b/plugins/selinux.c @@ -169,7 +169,7 @@ static rpmRC selinux_fsm_file_prepare(rpmPlugin plugin, rpmfi fi, if (rpmIsDebug()) { rpmlog(RPMLOG_DEBUG, "lsetfilecon: (%s, %s) %s\n", - path, scon, (rc < 0 ? strerror(errno) : "")); + path, scon, (conrc < 0 ? strerror(errno) : "")); } if (conrc == 0 || (conrc < 0 && errno == EOPNOTSUPP))