innfeed.conf: NULL key?

The Hermit Hacker scrappy at hub.org
Thu Nov 25 15:50:20 UTC 1999


Better, but it doesn't make any sense:

Nov 25 10:48:11 hub innfeed[76609]: loading /news/admin/etc/innfeed.conf
Nov 25 10:48:11 hub innfeed[76609]: ME config file error: line 14: NULL
key 


# $Revision: 1.2 $
#
# Sample innfeed config file. See the comment block at the
# end for a fuller description of the format, and innfeed.conf(5) for a
# description of the entries.
#

##
## Global values. Not specific to any peer. These are optional, but if
## used will override the compiled in values.
##


pid-file:                       innfeed.pid
debug-level:                    0
use-mmap:                       false

=====================

And, looking at the site/innfeed.conf file, this is exactly the same as
what is given as a sample file...


On Fri, 26 Nov 1999, Katsuhiro Kondou wrote:

> In article <Pine.BSF.4.10.9911251120180.63896-100000 at thelab.hub.org>,
> 	The Hermit Hacker <scrappy at hub.org> wrote;
> 
> } Still searching for it, but so far everything looks like that which is in
> } the site directory...just a "simple request"  add a line number for where
> } the error is, siimilar to newsfeeds?
> 
> How about attached?  I'll commit if it's ok.
> -- 
> Katsuhiro Kondou
> 
> 
> --- innfeed/configfile.y.orig	Sun Nov 21 10:00:32 1999
> +++ innfeed/configfile.y	Fri Nov 26 00:35:26 1999
> @@ -587,9 +587,17 @@
>    char *rval ;
>  
>    if (key == NULL)
> -    return strdup ("NULL key") ;
> +    {
> +      rval = malloc (strlen ("line : NULL key") + 15) ;
> +      sprintf (rval,"line %d: NULL key", lineCount) ;
> +      return rval ;
> +    }
>    else if (*key == '\0')
> -    return strdup ("EMPTY KEY") ;
> +    {
> +      rval = malloc (strlen ("line : EMPTY KEY") + 15) ;
> +      sprintf (rval,"line %d: EMPTY KEY", lineCount) ;
> +      return rval ;
> +    }
>    
>    if (!isalpha(*p))
>      {
> 

Marc G. Fournier                   ICQ#7615664               IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: scrappy at hub.org           secondary: scrappy@{freebsd|postgresql}.org 



More information about the inn-workers mailing list