FastCGI and RT3

Has anyone been successful getting FastCGI to work right out of the box
under Solaris? Unless I make code changes, running mason_handler.fcgi
gives me:

copper {local/rt3/bin} % /usr/local/rt3/bin/mason_handler.fcgi
Can’t locate /dev/fd/webmux.pl in @INC (@INC contains: /usr/local/lib/perl5/5.8.0/sun4-solaris /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl) at /dev/fd/3 line 28.
Exit 2

The problem appears to be that suidperl is given the perl script as
/dev/fd/3, and so you lose the original FILE contents.
mason_handler.fcgi uses that to determine where to look for the webmux.pl
file. If I hardcode the path into the script, things work just fine.

I haven’t thought of a portable way of fixing this yet, but thought that
maybe someone else has.
-Matt

The problem appears to be that suidperl is given the perl script as
/dev/fd/3, and so you lose the original FILE contents.
mason_handler.fcgi uses that to determine where to look for the webmux.pl
file. If I hardcode the path into the script, things work just fine.

I haven’t thought of a portable way of fixing this yet, but thought that
maybe someone else has.

‘autoconf’ is the magic portable way of fixing this :wink: It’s fixed in the
repository as of change 17. It’ll be fixed in the next RC.

-jesse

-Matt


rt-devel mailing list
rt-devel@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel

http://www.bestpractical.com/rt – Trouble Ticketing. Free.