ezmlm: Thread: ezmlm-test fatal error


[<<] [<] Page 1 of 1 [>] [>>]
Subject: ezmlm-test fatal error
From: Jeff Ross ####@####.####
Date: 19 May 2014 17:06:12 -0000
Message-Id: <537A3A03.2010007@openvistas.net>

Hi all,

I'm getting an error in 7.2.2's ezmlm-test in the "check tags written to 
the Log" section beginning at line 861.

The grep statment fails on OpenBSD -current, even though the Log is 
correctly written.  This may be a variant in the BSD's grep--I'm not 
sure but my fix also works on Ubuntu 12.04.

Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.11.0-15-generic x86_64)

  * Documentation:  https://help.ubuntu.com/
Last login: Thu May 15 13:09:10 2014 from 192.168.139.1
jross@bitarena:~$ echo "1400517697 +manual xyZZy@host" | grep  -i '[0-9] 
+manual xyzzy@host'
1400517697 +manual xyZZy@host
jross@bitarena:~$ echo "1400517697 +manual xyZZy@host" | grep  -i 
'[0-9]\+ +manual xyzzy@host'
1400517697 +manual xyZZy@host


Here's a diff:

####@####.#### $ diff -U3 ezmlm-test  
ezmlm-test.mine
--- ezmlm-test  Mon May 19 10:34:04 2014
+++ ezmlm-test.mine     Mon May 19 10:51:47 2014
@@ -859,15 +859,15 @@
         fatal "ezmlm-sub/issubn: failed to remove wildcard address"

  # check tags written to the Log
-  grep -i '[0-9]\+ +manual xyzzy@host' "$DIR"/Log >/dev/null \
+  grep -i '[0-9] +manual xyzzy@host' "$DIR"/Log >/dev/null \
        || fatal "Log is missing manual subscribe tag"
-  grep -i '[0-9]\+ -manual xyzzy@host' "$DIR"/Log >/dev/null \
+  grep -i '[0-9] -manual xyzzy@host' "$DIR"/Log >/dev/null \
        || fatal "Log is missing manual unsubscribe tag"
    ${EZBIN}/ezmlm-sub -t tag1 "$DIR" xyzzy@host
-  grep -i '[0-9]\+ +tag1 xyzzy@host' "$DIR"/Log >/dev/null \
+  grep -i '[0-9] +tag1 xyzzy@host' "$DIR"/Log >/dev/null \
        || fatal "ezmlm-sub did not alter subscribe tag"
    ${EZBIN}/ezmlm-unsub -t tag2 "$DIR" xyzzy@host
-  grep -i '[0-9]\+ -tag2 xyzzy@host' "$DIR"/Log >/dev/null \
+  grep -i '[0-9] -tag2 xyzzy@host' "$DIR"/Log >/dev/null \
        || fatal "ezmlm-sub did not alter subscribe tag"

  # clean up


I'm also getting an segmentation fault with ezmlm-archive but as it 
turns out I was with 7.1.1 as well.  I'll see if I can narrow that down 
a little.

Jeff Ross
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.21.