Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Mar 2013 03:40:02 GMT
From:      Tsunehiko Suzuki <tss-fbspr@e-ontap.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/177389: trouble of moderator and digest in qmailadmin+ezmlm-idx
Message-ID:  <201303260340.r2Q3e2iG056546@red.freebsd.org>
Resent-Message-ID: <201303260350.r2Q3o0mE004951@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         177389
>Category:       ports
>Synopsis:       trouble of moderator and digest in qmailadmin+ezmlm-idx
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 26 03:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Tsunehiko Suzuki
>Release:        8.3-RELEASE-p3
>Organization:
Chukyo University
>Environment:
FreeBSD vps2.e-ontap.com 8.3-RELEASE-p3 FreeBSD 8.3-RELEASE-p3 #2: Wed Jun 13 20:07:56 JST 2012     tss@vps2.e-ontap.com:/usr/obj/usr/src/sys/VPS  i386
qmailadmin-1.2.15 + ezmlm-idx-7.1.1
>Description:
The functions about "moderator" and "digest" did not work in qmailadmin-1.2.15 + ezmlm-idx-7.1.1.
Because the specification of ezmlm-idx were changed.
>How-To-Repeat:
You can find no moderators in list of moderators even if you add a moderator.
>Fix:
--- mailinglist.c~	2009-03-09 10:35:01.000000000 +0900
+++ mailinglist.c	2013-03-25 23:48:29.000000000 +0900
@@ -681,13 +681,15 @@
     dup2(handles[1],fileno(stdout));
     sprintf(TmpBuf1, "%s/ezmlm-list", EZMLMDIR);
     if(mod == 1) {
-        sprintf(TmpBuf2, "%s/%s/mod", RealDir, ActionUser);
+        sprintf(TmpBuf2, "%s/%s", RealDir, ActionUser);
+        execl(TmpBuf1, "ezmlm-list", TmpBuf2, "mod", NULL);
     } else if(mod == 2) {
-        sprintf(TmpBuf2, "%s/%s/digest", RealDir, ActionUser);
+        sprintf(TmpBuf2, "%s/%s", RealDir, ActionUser);
+        execl(TmpBuf1, "ezmlm-list", TmpBuf2, "digest", NULL);
     } else {
         sprintf(TmpBuf2, "%s/%s/", RealDir, ActionUser);
+        execl(TmpBuf1, "ezmlm-list", TmpBuf2, NULL);
     }
-    execl(TmpBuf1, "ezmlm-list", TmpBuf2, NULL);
     exit(127);
   } else {
     close(handles[1]);
@@ -799,9 +801,9 @@
   pid=fork();
   if (pid==0) {
     snprintf(subpath, sizeof(subpath), "%s/ezmlm-sub", EZMLMDIR);
-    snprintf(listpath, sizeof(listpath), "%s/%s/%s",
-      RealDir, ActionUser, dir);
-    execl(subpath, "ezmlm-sub", listpath, email, NULL);
+    snprintf(listpath, sizeof(listpath), "%s/%s",
+      RealDir, ActionUser);
+    execl(subpath, "ezmlm-sub", listpath, dir, email, NULL);
     exit(127);
   } else wait(&pid);

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303260340.r2Q3e2iG056546>