diff --git a/logrotate-3.7.9-address-parsing.patch b/logrotate-3.7.9-address-parsing.patch new file mode 100644 index 0000000..9c17299 --- /dev/null +++ b/logrotate-3.7.9-address-parsing.patch @@ -0,0 +1,30 @@ +Index: config.c +=================================================================== +--- config.c (revision 321) ++++ config.c (working copy) +@@ -199,19 +199,22 @@ + char *endtag, *chptr; + char *start = *startPtr; + char *address; +- ++ + if ((endtag = isolateValue(configFile, lineNum, key, startPtr, buf, length)) != NULL) { + + chptr = endtag; +- while (*chptr && isprint(*chptr) && *chptr != ' ') ++ while (*chptr && isprint(*chptr) && *chptr != ' ') { + chptr++; ++ } ++ + if (*chptr) { + message(MESS_ERROR, "%s:%d bad %s address %s\n", + configFile, lineNum, key, start); + return NULL; + } + +- address = strdup(chptr); ++ address = strdup(endtag); ++ + free(endtag); + + return address;