Subject: pkg/8814: majordomo-1.94.4 can't find digest script
To: None <gnats-bugs@gnats.netbsd.org>
From: None <wulf@ping.net.au>
List: netbsd-bugs
Date: 11/16/1999 14:12:43
>Number:         8814
>Category:       pkg
>Synopsis:       majordomo-1.94.4 can't find digest script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 16 14:12:00 1999
>Last-Modified:
>Originator:     Berndt Josef Wulf
>Organization:
>Release:        NetBSD-1.4.1-i386
>Environment:
NetBSD dingo 1.4 NetBSD 1.4 (HOTDOG) #0: Tue Jul 27 11:05:49 CST 1999
wulf@dingo:/usr/src/sys/arch/alpha/compile/HOTDOG alpha
>Description:
Majordomo returns an error when issuing the 'mkdigest' directive
as it expects 'digest' to be installed in /home/majordomo.
On NetBSD, all majordomo binaries and scripts are installed in
${PREFIX}/libexec/majordomo.

The offending line is

majordomo:            "$homedir/digest -m -C -l $list $list_outgoing 2>&1 |");
                       ^^^^^^^^
                       shouldn't this be $bindir?

where

bindir="@PREFIX@/libexec/majordomo";


>How-To-Repeat:
Install majordomo-1.94.4 in /usr/pkgsrc/mail/majordomo and after
creating the appropriate mailing lists issue the following command:

echo mkdigest <list>-digest <password> | mail majordomo@<domainname>

The result will be:

/home/majordomo/digest: permission denied


>Fix:
--- majordomo.orig      Wed Nov 17 08:37:13 1999
+++ majordomo   Wed Nov 17 08:36:54 1999
@@ -1139,7 +1139,7 @@
        # The password is valid, so run digest

            open(DIGEST,
-               "$homedir/digest -m -C -l $list $list_outgoing 2>&1 |");
+               "$bindir/digest -m -C -l $list $list_outgoing 2>&1 |");
            @digest_errors = <DIGEST>;
            close(DIGEST);
>Audit-Trail:
>Unformatted: