Subject: Developers of Sympa
List archive
- From: Richard Balint <address@concealed>
- To: address@concealed
- Subject: [sympa-dev] Bug: SYMPA version 2.5.2+
- Date: Wed, 29 Mar 2000 11:46:20 -0500 (EST)
I was having some problems with sympa queue not working at all. Took me
FOREVER to find this. As the code is in 2.5.2+, it searches for the
configuration keyword "queue" wrong. As-is, the queue program will work
fine... IF the "queue" keyword is before any other queue keyword "such as
queuebounce"
The applied patch now searches for "queue" at the beginning of the line,
and also searches for a whitespace right after it. This should clean it
up a tad. :)
-Richard Balint
University of Dayton
--- queue.c.orig Wed Mar 29 11:41:11 2000
+++ queue.c Wed Mar 29 11:41:47 2000
@@ -24,7 +24,8 @@
r = NULL;
if ((f = fopen(file, "r")) != NULL) {
while (fgets(buf, sizeof buf, f) != NULL) {
- if (buf[0] == 'q' && strncmp(buf, "queue", 5) == 0) {
+ /* Search for the configword "queue" and a whitespace after it */
+ if (strncmp(buf, "queue", 5) == 0 && isspace(buf[5])) {
/* Strip the ending \n */
if ((p = (unsigned char *)strrchr((char *)buf, '\n')) != NULL)
*p = '\0';
-----
Richard Balint address@concealed
University of Dayton ACTS/MNS
(937) 229-3888 Network Specialist
-
[sympa-dev] Beta version 2.5.4,
Olivier Salaun - CRU, 03/23/2000
-
[sympa-dev] Bug: SYMPA version 2.5.2+,
Richard Balint, 03/29/2000
- Re: [sympa-dev] Bug: SYMPA version 2.5.2+, Olivier Salaun - CRU, 03/30/2000
-
[sympa-dev] Bug: SYMPA version 2.5.2+,
Richard Balint, 03/29/2000
Archive powered by MHonArc 2.6.19+.