- 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
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
commit a98c38bc867ec59e00625b48262bb3334c8f5728
|
|
Author: Christian Göttsche <cgzones@googlemail.com>
|
|
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);
|