Hello community,

here is the log from the commit of package logrotate for openSUSE:Factory
checked in at Wed Sep 7 17:55:31 CEST 2011.



--------
--- logrotate/logrotate.changes 2011-07-25 12:27:56.000000000 +0200
+++ /mounts/work_src_done/STABLE/logrotate/logrotate.changes    2011-09-07 
14:54:02.000000000 +0200
@@ -1,0 +2,5 @@
+Wed Sep  7 12:51:41 UTC 2011 - [email protected]
+
+- allow whitespace separated options in compressoptions (bnc#711780)
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


New:
----
  logrotate-3.7.9-compressoptions.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ logrotate.spec ++++++
--- /var/tmp/diff_new_pack.5luPxC/_old  2011-09-07 17:55:26.000000000 +0200
+++ /var/tmp/diff_new_pack.5luPxC/_new  2011-09-07 17:55:26.000000000 +0200
@@ -20,7 +20,7 @@
 
 Name:           logrotate
 Version:        3.7.9
-Release:        10
+Release:        12
 License:        GPLv2+
 Summary:        Rotate, compress, remove, and mail system log files
 Group:          System/Base
@@ -34,6 +34,7 @@
 Patch5:         logrotate-CVE-2011-1098.patch
 Patch6:         logrotate-shred-CVE-2011-1154.patch
 Patch7:         logrotate-CVE-2011-1155.patch
+Patch8:         logrotate-3.7.9-compressoptions.patch
 BuildRequires:  libselinux-devel
 BuildRequires:  popt-devel
 PreReq:         %fillup_prereq
@@ -61,6 +62,7 @@
 %patch5 -p1
 %patch6
 %patch7
+%patch8 -p1
 
 %build
 make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags}" WITH_SELINUX=yes

++++++ logrotate-3.7.9-compressoptions.patch ++++++
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;

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to