mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-18 00:30:41 +01:00
bugfix: imkmsg issued wrong facility in error messages
See also commit 1afd79df
This commit is contained in:
parent
244d365f21
commit
9b32fd55ce
@ -163,7 +163,7 @@ klogWillRunPrePrivDrop(modConfData_t *pModConf)
|
||||
|
||||
fklog = open(_PATH_KLOG, O_RDONLY, 0);
|
||||
if (fklog < 0) {
|
||||
imkmsgLogIntMsg(RS_RET_ERR_OPEN_KLOG, "imkmsg: cannot open kernel log(%s): %s.",
|
||||
imkmsgLogIntMsg(LOG_ERR, "imkmsg: cannot open kernel log (%s): %s.",
|
||||
_PATH_KLOG, rs_strerror_r(errno, errmsg, sizeof(errmsg)));
|
||||
ABORT_FINALIZE(RS_RET_ERR_OPEN_KLOG);
|
||||
}
|
||||
@ -185,7 +185,7 @@ klogWillRunPostPrivDrop(modConfData_t *pModConf)
|
||||
/* on an OpenVZ VM, we get EPERM */
|
||||
r = read(fklog, NULL, 0);
|
||||
if (r < 0 && errno != EINVAL) {
|
||||
imkmsgLogIntMsg(RS_RET_ERR_OPEN_KLOG, "imkmsg: cannot open kernel log(%s): %s.",
|
||||
imkmsgLogIntMsg(LOG_ERR, "imkmsg: cannot open kernel log (%s): %s.",
|
||||
_PATH_KLOG, rs_strerror_r(errno, errmsg, sizeof(errmsg)));
|
||||
fklog = -1;
|
||||
ABORT_FINALIZE(RS_RET_ERR_OPEN_KLOG);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user