b359c29be2
- allow whitespace separated options in compressoptions (bnc#711780) OBS-URL: https://build.opensuse.org/request/show/81344 OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=16
16 lines
714 B
Diff
16 lines
714 B
Diff
Index: logrotate-3.7.9/config.c
|
|
===================================================================
|
|
--- logrotate-3.7.9.orig/config.c
|
|
+++ logrotate-3.7.9/config.c
|
|
@@ -101,7 +139,9 @@ static char *readPath(const char *config
|
|
chptr = start;
|
|
|
|
while( (len = mbrtowc(&pwc, chptr, strlen(chptr), NULL)) != 0 ) {
|
|
- if( len == (size_t)(-1) || len == (size_t)(-2) || !iswprint(pwc) || iswblank(pwc) ) {
|
|
+ if( len == (size_t)(-1) || len == (size_t)(-2) || !iswprint(pwc) ||
|
|
+ /* allow more compress options separated by whitespace */
|
|
+ ( strcmp(key, "compressoptions") && iswblank(pwc) ) ) {
|
|
message(MESS_ERROR, "%s:%d bad %s path %s\n",
|
|
configFile, lineNum, key, start);
|
|
return NULL;
|