teknoraver / rpms / rpm

Forked from rpms/rpm 3 months ago
Clone

Blame SOURCES/rpm-4-14.3-selinux-log-error.patch

35cbef
--- rpm-4.14.3/plugins/selinux.c.orig	2020-05-11 16:07:22.873791795 +0200
35cbef
+++ rpm-4.14.3/plugins/selinux.c	2020-05-11 16:10:11.701771157 +0200
35cbef
@@ -47,7 +47,7 @@
35cbef
 
35cbef
     sehandle = selabel_open(SELABEL_CTX_FILE, opts, 1);
35cbef
 
35cbef
-    rpmlog(RPMLOG_DEBUG, "selabel_open: (%s) %s\n",
35cbef
+    rpmlog((sehandle == NULL) ? RPMLOG_ERR : RPMLOG_DEBUG, "selabel_open: (%s) %s\n",
35cbef
 	   path, (sehandle == NULL ? strerror(errno) : ""));
35cbef
 
35cbef
     return (sehandle != NULL) ? RPMRC_OK : RPMRC_FAIL;