logrotate (3.7.8-6) configparse.patch

Summary

 config.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

    
download this patch

Patch contents

# Loosens the config syntax checking to allow more flexibility.
#  (Closes: #95617,#95630)

Index: logrotate-3.7.8/config.c
===================================================================
--- logrotate-3.7.8.orig/config.c	2009-08-14 23:20:54.016008616 +0100
+++ logrotate-3.7.8/config.c	2009-08-14 23:20:55.076008648 +0100
@@ -1058,7 +1058,7 @@
 
 		    while (*start) {
 			chptr = start;
-			while (!isspace(*chptr) && *chptr != ',' && *chptr)
+			while (!isspace(*chptr) && /* *chptr != ',' && */ *chptr)
 			    chptr++;
 
 			tabooExts = realloc(tabooExts, sizeof(*tabooExts) *
@@ -1070,8 +1070,10 @@
 			tabooCount++;
 
 			start = chptr;
+			/*
 			if (*start == ',')
 			    start++;
+			*/
 			while (isspace(*start) && *start)
 			    start++;
 		    }