INN commit: trunk/backends (archive.c)

INN Commit rra at isc.org
Sun Nov 1 19:47:09 UTC 2009


    Date: Sunday, November 1, 2009 @ 11:47:09
  Author: iulius
Revision: 8701

Change a few log lines.

Modified:
  trunk/backends/archive.c

-----------+
 archive.c |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

Modified: archive.c
===================================================================
--- archive.c	2009-11-01 19:46:28 UTC (rev 8700)
+++ archive.c	2009-11-01 19:47:09 UTC (rev 8701)
@@ -202,7 +202,7 @@
 
 /*
 **  Write an index entry to standard output.  This is the path (without the
-**  archive root), the message ID of the article, and the subject.
+**  archive root), the message-ID of the article, and the subject.
 */
 static void
 write_index(FILE *index, ARTHANDLE *art, const char *file)
@@ -279,12 +279,12 @@
     struct cvector *groups;
     struct buffer *path = NULL;
 
-    /* Determine the groups from the Xref header.  In groups will be the split
-       Xref header; from the second string on should be a group, a colon, and
+    /* Determine the groups from the Xref: header.  In groups will be the split
+       Xref: header; from the second string on should be a group, a colon, and
        an article number. */
     start = wire_findheader(art->data, art->len, "Xref");
     if (start == NULL) {
-        warn("cannot find Xref header in %s", token);
+        warn("cannot find Xref: header in %s", token);
         return;
     }
     end = wire_endheader(start, art->data + art->len);
@@ -294,7 +294,8 @@
             *p = ' ';
     groups = cvector_split_space(xref, NULL);
     if (groups->count < 2) {
-        warn("bogus Xref header in %s", token);
+        warn("bogus Xref: header in %s", token);
+        free(xref);
         return;
     }
 
@@ -305,7 +306,7 @@
         group = groups->strings[i];
         delim = strchr(group, ':');
         if (delim == NULL) {
-            warn("bogus Xref entry %s in %s", group, token);
+            warn("bogus Xref: entry %s in %s", group, token);
             continue;
         }
         *delim = '\0';




More information about the inn-committers mailing list