Skip to Content.
Sympa Menu

devel - arc2webarc.pl patch, and wwsympa.fcgi mode change

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: "Adam Bernstein" <address@concealed>
  • To: <address@concealed>
  • Subject: arc2webarc.pl patch, and wwsympa.fcgi mode change
  • Date: Mon, 9 Dec 2002 17:12:59 -0800

1. Following is a patch to make arc2webarc.pl work with lists in
virtual robots, which it currently does not. I will also submit this
patch through the bug system.

2. I think a minor change should be made in the distribution of Sympa,
specifically in the permissions on wwsympa.fcgi. I'm not sure which
type of Apache/suexec/FastCGI configuration the current settings are
intended to work with, but they do not worth when the Web server (or
virtual robot) runs as the user "sympa" and the script is executed by
FastCGI through Apache's suexec module. This configuration causes the
dreaded repeating "exit with status 2" message every five seconds from
wwsympa.fcgi, which I've seen many people confused about. The answer
is simple but elusive and not documented anywhere: run a "chmod a-s"
on the wwsympa.fcgi script. Of course this is on systems where suid
scripts are forbidden, but that has to be the majority of systems out
there, at least out-of-the-box.

Since this has to be the most common configuration for making Sympa
work (or am I wrong about that?), I wonder if you could just remove the
setuid bit from the wwsympa.fcgi script in the distribution. Or, at
the very least, document this necessary step in the WWSympa section of
the Sympa guide.

adam
--
Adam Bernstein Member of Tech Underground:
address@concealed http://tech-underground.org
415-596-6384
.......................................................................
Consulting services: | Email hosting: | Listserv/Group hosting:
http://amberbug.org | http://npo-mail.org | http://npogroups.org


Patch to make arc2webarc.pl work with virtual robots:

%diff arc2webarc-orig.pl arc2webarc.pl
4a5
> #
65c66
< die "Usage : $ARGV[-1] <listname>" unless ($#ARGV >= 0);
---
> die "Usage : $ARGV[-1] <listname> [<robot>]" unless ($#ARGV >= 0);
66a68
> my $robot = $ARGV[1];
98,99c100,101
< unless (-d "$home_sympa/$listname") {
< die "No directory for list $listname";
---
> unless (-d "$home_sympa/$robot/$listname") {
> die "No directory for list $listname@$robot";
102,103c104,105
< unless (-d "$home_sympa/$listname/archives") {
< die "No archives for list $listname";
---
> unless (-d "$home_sympa/$robot/$listname/archives") {
> die "No archives for list $listname@$robot";
107c109
< foreach my $arc_file (<$home_sympa/$listname/archives/log*>) {
---
> foreach my $arc_file (<$home_sympa/$robot/$listname/archives/log*>) {




Archive powered by MHonArc 2.6.19+.

Top of Page