INN commit: trunk/frontends (sys2nf.c)

INN Commit Russ_Allbery at isc.org
Sun Dec 14 16:53:55 UTC 2008


    Date: Sunday, December 14, 2008 @ 08:53:54
  Author: iulius
Revision: 8231

Use pathdb from inn.conf in sys2nf.c.

see #5

Modified:
  trunk/frontends/sys2nf.c

----------+
 sys2nf.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Modified: sys2nf.c
===================================================================
--- sys2nf.c	2008-12-14 16:49:28 UTC (rev 8230)
+++ sys2nf.c	2008-12-14 16:53:54 UTC (rev 8231)
@@ -15,6 +15,7 @@
 
 #include "inn/innconf.h"
 #include "inn/libinn.h"
+#include "inn/paths.h"
 #include "nntp.h"
 
 #define TEMPFILE	":tmp"
@@ -259,7 +260,7 @@
     if (!innconf_read(NULL))
         exit(1);
     /* Set defaults. */
-    act = "/usr/local/lib/newslib/active";
+    act = concatpath(innconf->pathdb, INN_PATH_ACTIVE);
     sys = "sys";
     dir = "feeds";
     while ((i = getopt(ac, av, "a:s:d:")) != EOF)




More information about the inn-committers mailing list