[logrotate] Added missing patch
Jan Kaluža
jkaluza at fedoraproject.org
Mon May 30 13:57:38 UTC 2011
commit 84316e368697dbe200c5a4be558253311977030a
Author: Jan Kaluza <hanzz.k at gmail.com>
Date: Mon May 30 15:57:17 2011 +0200
Added missing patch
logrotate-3.7.9-address-parsing.patch | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
---
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;
More information about the scm-commits
mailing list