From 0102239a0de344c5d6120efe7c73a36cb9886c01b90274b5e08e79ca0cb41cef Mon Sep 17 00:00:00 2001 From: Pedro Monreal Gonzalez Date: Fri, 22 Oct 2021 16:27:05 +0000 Subject: [PATCH] Accepting request 926293 from home:manfred-h - Add patch: * logrotate-dont_warn_on_size=_syntax.patch (boo#1191816) OBS-URL: https://build.opensuse.org/request/show/926293 OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=91 --- logrotate-dont_warn_on_size=_syntax.patch | 29 +++++++++++++++++++++++ logrotate.changes | 6 +++++ logrotate.spec | 2 ++ 3 files changed, 37 insertions(+) create mode 100644 logrotate-dont_warn_on_size=_syntax.patch diff --git a/logrotate-dont_warn_on_size=_syntax.patch b/logrotate-dont_warn_on_size=_syntax.patch new file mode 100644 index 0000000..64cef72 --- /dev/null +++ b/logrotate-dont_warn_on_size=_syntax.patch @@ -0,0 +1,29 @@ +commit a98c38bc867ec59e00625b48262bb3334c8f5728 +Author: Christian Göttsche +Date: Mon Jul 26 19:35:00 2021 +0200 + + Do not warn on key value pair separated by only an equal sign + + Do not warn if a configuration directive is specified with the key and + value separated by just an equal sign, like: + + size=+2048k + + The warning is intended for the usage of: + + size2048k + + Fixes: 2b588b5e ("Log if keyword is not properly separated") + Fixes: #410 + +--- a/config.c 2021-10-19 14:09:18.320365539 +0200 ++++ b/config.c 2021-10-19 13:52:39.810800011 +0200 +@@ -1109,7 +1109,7 @@ static int readConfigFile(const char *co + configFile, lineNum); + continue; + } +- if (!isspace((unsigned char)*start)) { ++ if (!isspace((unsigned char)*start) && *start != '=') { + message(MESS_NORMAL, "%s:%d keyword '%s' not properly" + " separated, found %#x\n", + configFile, lineNum, key, *start); diff --git a/logrotate.changes b/logrotate.changes index e94eed4..95a9918 100644 --- a/logrotate.changes +++ b/logrotate.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Oct 19 11:36:39 UTC 2021 - Manfred Hollstein + +- Add patch: + * logrotate-dont_warn_on_size=_syntax.patch (boo#1191816) + ------------------------------------------------------------------- Thu May 27 16:31:55 UTC 2021 - Dirk Müller diff --git a/logrotate.spec b/logrotate.spec index f7d9fad..9f321bb 100644 --- a/logrotate.spec +++ b/logrotate.spec @@ -30,6 +30,7 @@ Source2: logrotate.default Source10: https://github.com/%{name}/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc Source100: %{name}-rpmlintrc Patch0: logrotate-3.13.0-systemd_add_home_env.patch +Patch1: logrotate-dont_warn_on_size=_syntax.patch BuildRequires: acl BuildRequires: libacl-devel BuildRequires: pkgconfig @@ -50,6 +51,7 @@ It manages plain files only and is not involved in systemd's journal rotation. %prep %setup -q %patch0 -p1 +%patch1 -p1 %build %configure \