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