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

Re: [leafnode-list] Re. /etc/leafnode/local.groups.

Arne Hanssen schrieb am Sonntag, den 10. Februar 2002:

> Just installed 2.0b_ma10rc2 (yes, success :-)), and noticed that it
> didn't like comments (#-lines) in /etc/leafnode/local.groups.  I take
> it that this is "inherited" from .../news/leaf.node/groupinfor, but
> is it a bad idea to allow comments?
> (I like to explain to myself the contents of my files.)

It's not inherited.

For local.groups, allowing comments makes some sense, as leafnode does
not modify this file, just read it, and the patch is trivial (one line
of code). Expect to see this in 10pre3.

Here's the patch (untested for now):

Index: localutil.c
RCS file: /home/emma/mycvsroot/leafnode/localutil.c,v
retrieving revision 1.14
diff -u -r1.14 localutil.c
--- localutil.c	2002/01/14 01:52:26	1.14
+++ localutil.c	2002/02/11 00:28:38
@@ -116,6 +116,8 @@
     debug = 0;
     while ((l = getaline(f))) {
+	/* skip comments */
+	if (l[0] == '#') continue;
 	p = l;
 	while (*p && *p != '\t')

leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list