Projects
openEuler:24.03
rsyslog
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 12
View file
_service:tar_scm:rsyslog.spec
Changed
@@ -7,7 +7,7 @@ Name: rsyslog Version: 8.2312.0 -Release: 1 +Release: 3 Summary: The rocket-fast system for log processing License: (GPLv3+ and ASL 2.0) URL: http://www.rsyslog.com/ @@ -30,6 +30,7 @@ Patch9005: print-main-queue-info-to-journal-when-receive-USR1-signal.patch Patch6000: backport-outchannel-eleminate-type-cast-for-compatibility-rea.patch +Patch6001: backport-fix-printing-of-time_t-values.patch BuildRequires: gcc autoconf automake bison dos2unix flex pkgconfig python3-docutils libtool BuildRequires: libgcrypt-devel libuuid-devel zlib-devel krb5-devel libnet-devel gnutls-devel @@ -506,6 +507,18 @@ %{_mandir}/man1/rscryutil.1.gz %changelog +* Wed May 22 2024 zhangyaqi <zhangyaqi@kylinos.cn> - 8.2312.0-3 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix printing of time_t values + +* Wed May 8 2024 zhangqiumiao <zhangqiumiao1@huawei.com> - 8.2312.0-2 +- Type:NA +- ID:NA +- SUG:NA +- DESC:fix typo in mainloop() + * Sun Feb 18 2024 sunhai <sunhai10@huawei.com> - 8.2312.0-1 - Type:NA - ID:NA
View file
_service:tar_scm:backport-fix-printing-of-time_t-values.patch
Added
@@ -0,0 +1,60 @@ +From dbe5cba4f725dea49dc70740efe550b141f2cc4c Mon Sep 17 00:00:00 2001 +From: Michael Biebl <biebl@debian.org> +Date: Wed, 10 Apr 2024 19:28:52 +0200 +Subject: PATCH fix printing of time_t values + +time_t can be 64bit, even on 32bit architectures. So always use 64bit +integers (PRId64) when printing time_t values and upcast as necessary. + +See https://wiki.debian.org/ReleaseGoals/64bit-time + +Fixes: #5355 +--- + contrib/mmkubernetes/mmkubernetes.c | 5 +++-- + plugins/imfile/imfile.c | 11 +++++++---- + 2 files changed, 10 insertions(+), 6 deletions(-) + +diff --git a/contrib/mmkubernetes/mmkubernetes.c b/contrib/mmkubernetes/mmkubernetes.c +index 525962e..f6d475e 100644 +--- a/contrib/mmkubernetes/mmkubernetes.c ++++ b/contrib/mmkubernetes/mmkubernetes.c +@@ -1722,8 +1722,9 @@ queryKB(wrkrInstanceData_t *pWrkrData, char *url, time_t now, struct json_object + now -= pWrkrData->pData->cache->lastBusyTime; + if (now < pWrkrData->pData->busyRetryInterval) { + LogMsg(0, RS_RET_RETRY, LOG_DEBUG, +- "mmkubernetes: Waited %ld of %d seconds for the requested url %s\n", +- now, pWrkrData->pData->busyRetryInterval, url); ++ "mmkubernetes: Waited %"PRId64" of %d seconds for " ++ "the requested url %s\n", ++ (int64_t) now, pWrkrData->pData->busyRetryInterval, url); + ABORT_FINALIZE(RS_RET_RETRY); + } else { + LogMsg(0, RS_RET_OK, LOG_DEBUG, +diff --git a/plugins/imfile/imfile.c b/plugins/imfile/imfile.c +index 3b0bb10..6c5764f 100644 +--- a/plugins/imfile/imfile.c ++++ b/plugins/imfile/imfile.c +@@ -857,13 +857,16 @@ detect_updates(fs_edge_t *const edge) + sbool is_file = act->edge->is_file; + if (!is_file || act->time_to_delete + FILE_DELETE_DELAY < ttNow) { + DBGPRINTF("detect_updates obj gone away, unlinking: " +- "'%s', ttDelete: %lds, ttNow:%ld isFile: %d\n", +- act->name, ttNow - (act->time_to_delete + FILE_DELETE_DELAY), ttNow, is_file); ++ "'%s', ttDelete: %"PRId64"s, ttNow:%"PRId64" isFile: %d\n", ++ act->name, (int64_t) ttNow - (act->time_to_delete + FILE_DELETE_DELAY), ++ (int64_t) ttNow, is_file); + act_obj_unlink(act); + restart = 1; + } else { +- DBGPRINTF("detect_updates obj gone away, keep '%s' open: %ld/%ld/%lds!\n", +- act->name, act->time_to_delete, ttNow, ttNow - act->time_to_delete); ++ DBGPRINTF("detect_updates obj gone away, keep '%s' " ++ "open: %"PRId64"/%"PRId64"/%"PRId64"s!\n", ++ act->name, (int64_t) act->time_to_delete, (int64_t) ttNow, ++ (int64_t) ttNow - act->time_to_delete); + pollFile(act); + } + } +-- +2.27.0 +
View file
_service:tar_scm:print-main-queue-info-to-journal-when-receive-USR1-signal.patch
Changed
@@ -77,7 +77,7 @@ +#ifdef HAVE_LIBSYSTEMD + if (g_bRecordQueue) { + if (runConf->pMsgQueue != NULL) { -+ sd_journal_print(LOG_NOTICE, "main queue size information: current QueueSize=%d MaxQeueSize=%d\n", ++ sd_journal_print(LOG_NOTICE, "main queue size information: current QueueSize=%d MaxQueueSize=%d\n", + runConf->pMsgQueue->iQueueSize, runConf->pMsgQueue->iMaxQueueSize); + } else { + sd_journal_print(LOG_NOTICE, "main queue size information: pMsgQueue is NULL!\n");
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2