Great Circle Associates Majordomo-Users
(January 1997)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Error in majordomo.pl?
From: Lars Kellogg-Stedman <lars @ bu . edu>
Date: Sat, 18 Jan 1997 11:00:24 -0500
To: majordomo-users @ GreatCircle . COM
Reply-to: lars @ bu . edu

I've just installed majordomo 1.94.1, and *almost* everything seems to
be working.  I was having some difficulty getting it to return the
"intro" file for a recently created list, and tracing through parts of
the perl code revealed the following:

At this point in access_check:

    foreach $list (@lists) {
        next unless (-e "$listdir/$list");
        $total += &main'is_list_member($subscriber, $listdir, $list);
    }

The value of "$list" ends up being the full pathname for the list,
rather than just the list name.  This means that when it test for the
existence of a file, instead of looking for:

     /usr/local/majordomo/lists/listname

It ends up looking for:

     /usr/local/majordomo/lists//usr/local/majordomo/lists/listname

Which, predictably, fails.  The same problem exists elsewhere in the
code (i.e., simply changing "$listdir/$list" to "$list" at this point
turns up errors elsewhere).

I don't know anything about perl, so trying to trace down the source of
this problem is a daunting prospect.  Has anyone seen this behavior
before?  Or am I just lucky?

Your help is much appreciated.  Thanks!

-- Lars

---
Lars Kellogg-Stedman * lars@bu.edu * (617)353-8277
Office of Information Technology, Boston University



Follow-Ups:
Indexed By Date Previous: Re: majordomo under linux
From: Michael Brennen <mbrennen@fni.com>
Next: Re: endless loops (not due to Reply_to)
From: Ron Emaus <remaus@great-lakes.net>
Indexed By Thread Previous: Re: majordomo under linux
From: Michael Brennen <mbrennen@fni.com>
Next: Re: Error in majordomo.pl?
From: Dave Wolfe <dwolfe@risc.sps.mot.com>

Google
 
Search Internet Search www.greatcircle.com