Added missing patch
This commit is contained in:
parent
8b7a98e00b
commit
84316e3686
30
logrotate-3.7.9-address-parsing.patch
Normal file
30
logrotate-3.7.9-address-parsing.patch
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user