Skip to Content.
Sympa Menu

devel - [sympa-dev] Bug: SYMPA version 2.5.2+

Subject: Developers of Sympa

List archive

Chronological Thread  
  • 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




Archive powered by MHonArc 2.6.19+.

Top of Page