[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] Re: Header PATH and FQDN



Am Montag 06 Dezember 2010, 19:09:18 schrieb Martin Brunzel:
> ... and by the way, this one should do without config. Please make
> some checks, I had no way to really test it. (It compiles. Is there
> anything more one needs to know? ;-) )
> 
> --- a/fetchnews.c
> +++ b/fetchnews.c
> @@ -1598,6 +1598,9 @@ post_FILE(const struct serverlist *cursrv, FILE
> * f, char **line)
>      if (r != 340)
>         return 0;
>      while ((l = getaline(f))) {
> +        /* wish: only post, if not the Path: header */
> +       if (strncasecmp(l, "Path:", 5) == 0)
> +           continue;
>         /* can't use putaline() here because
>            line length is restricted to 1024 bytes in there */
>         if (l[0] == '.')
> 

On second thought, it is not as good as it seemed first. Any line 
beginnunge with "Path:" will not be posted to your upstream. Feel free 
to test anyway.

There will be a better version someday.

Martin
-- 
_______________________________________________
leafnode-list mailing list
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list
http://leafnode.sourceforge.net/