fix logging on expireover
Richard Todd
rmtodd at skywalker.ecn.ou.edu
Mon Jul 26 01:47:55 UTC 1999
expireover was missing a call to openlog(), so any syslog()s done by it or
routines it called were going into some log other than LOG_NEWS.
Index: expire/expireover.c
===================================================================
RCS file: /home/rmtodd/TempCVS/Temp-CVS-Repository/inn-current/expire/expireover.c,v
retrieving revision 1.1.1.5
diff -u -r1.1.1.5 expireover.c
--- expireover.c 1999/07/04 05:47:44 1.1.1.5
+++ expireover.c 1999/07/26 01:33:42
@@ -13,6 +13,7 @@
#include "paths.h"
#include "storage.h"
#include "ov.h"
+#include <syslog.h>
void usage(void) {
fprintf(stderr, "Usage: expireover [flags]\n");
@@ -30,6 +31,9 @@
FILE *F;
BOOL LowmarkFile = FALSE;
char *lofile;
+
+ /* First thing, set up logging and our identity. */
+ openlog("expireover", L_OPENLOG_FLAGS | LOG_PID, LOG_INN_PROG);
while ((i = getopt(argc, argv, "f:Z:")) != EOF) {
switch (i) {
More information about the inn-patches
mailing list