File logrotate-dont_warn_on_size=_syntax.patch of Package logrotate.24944

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

Index: logrotate-3.13.0/config.c
===================================================================
--- logrotate-3.13.0.orig/config.c
+++ logrotate-3.13.0/config.c
@@ -1028,7 +1028,7 @@ static int readConfigFile(const char *co
 					        configFile, lineNum);
 					goto error;
 				}
-				if (!isspace((unsigned char)*start)) {
+				if (!isspace((unsigned char)*start) && *start != '=') {
 					message(MESS_ERROR, "%s:%d keyword '%s' not properly"
 					        " separated, found %#x\n",
 					        configFile, lineNum, key, *start);
openSUSE Build Service is sponsored by