SHA256
1
0
forked from pool/logrotate

Accepting request 81349 from Base:System

- allow whitespace separated options in compressoptions (bnc#711780) (forwarded request 81344 from vitezslav_cizek)

OBS-URL: https://build.opensuse.org/request/show/81349
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/logrotate?expand=0&rev=27
This commit is contained in:
Sascha Peilicke 2011-09-07 15:55:27 +00:00 committed by Git OBS Bridge
commit 0d8edf135a
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,15 @@
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;

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Sep 7 12:51:41 UTC 2011 - vcizek@suse.com
- allow whitespace separated options in compressoptions (bnc#711780)
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 25 10:25:56 UTC 2011 - jengelh@medozas.de Mon Jul 25 10:25:56 UTC 2011 - jengelh@medozas.de

View File

@ -34,6 +34,7 @@ Patch4: logrotate-3.7.8-mess_err.patch
Patch5: logrotate-CVE-2011-1098.patch Patch5: logrotate-CVE-2011-1098.patch
Patch6: logrotate-shred-CVE-2011-1154.patch Patch6: logrotate-shred-CVE-2011-1154.patch
Patch7: logrotate-CVE-2011-1155.patch Patch7: logrotate-CVE-2011-1155.patch
Patch8: logrotate-3.7.9-compressoptions.patch
BuildRequires: libselinux-devel BuildRequires: libselinux-devel
BuildRequires: popt-devel BuildRequires: popt-devel
PreReq: %fillup_prereq PreReq: %fillup_prereq
@ -61,6 +62,7 @@ daily cron job.
%patch5 -p1 %patch5 -p1
%patch6 %patch6
%patch7 %patch7
%patch8 -p1
%build %build
make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags}" WITH_SELINUX=yes make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags}" WITH_SELINUX=yes