CNFS problem solved
Katsuhiro Kondou
Katsuhiro_Kondou at isc.org
Tue Jul 17 14:46:13 UTC 2001
In article <20010717.225344.596520488.kondou at isc.org>,
Katsuhiro Kondou <Katsuhiro_Kondou at isc.org> wrote;
} } Can we add an error message that gets logged in that situation,
} } somewhere inside CNFS_setcurrent perhaps?
}
} We can. I'll try to do it.
Attached should work.
--
Katsuhiro Kondou
Index: storage/cnfs/cnfs.c
===================================================================
RCS file: /home/kondou/news/inn/repository/inn/storage/cnfs/cnfs.c,v
retrieving revision 1.87
diff -u -r1.87 cnfs.c
--- storage/cnfs/cnfs.c 2001/06/30 05:01:19 1.87
+++ storage/cnfs/cnfs.c 2001/07/17 14:38:17
@@ -322,6 +322,11 @@
return FALSE;
}
*p = '\0';
+ if (CNFSgetcycbuffbyname(l) != NULL) {
+ *p = ':';
+ syslog(L_ERROR, "%s: duplicate cycbuff name in line '%s'", LocalLogName, l);
+ return FALSE;
+ }
cycbuff = NEW(CYCBUFF, 1);
memset(cycbuff->name, '\0', CNFSNASIZ);
strcpy(cycbuff->name, l);
@@ -390,6 +395,11 @@
return FALSE;
}
*p = '\0';
+ if (CNFSgetmetacycbuffbyname() != NULL) {
+ *p = ':';
+ syslog(L_ERROR, "%s: duplicate metabuff name in line '%s'", LocalLogName, l);
+ return FALSE;
+ }
metacycbuff = NEW(METACYCBUFF, 1);
metacycbuff->members = (CYCBUFF **)NULL;
metacycbuff->count = 0;
More information about the inn-workers
mailing list