I am posting this for Logan Buesching (ljbuesch at purdue.edu), received via e-mail.
--
PTh
I tried submitting a bug report, but it kept telling me that I didn't fill out
required information, and that Guest couldn't submit a bug. So I decided to
send you an e-mail instead.
I noted this in the IRC channel, but was unsure if anyone was going to see it,
considering that probably not everyone reads every line of what is said.
When trying to set up TWiki, I ran into this problem during configure.
TWiki module in @INC path
Error: 'TWiki.pm' could not be loaded. The error was:
[Wed Nov 9 18:52:38 2005] configure: [Wed Nov 9 18:52:38 2005] configure:
[Wed
Nov 9 18:52:38 2005] configure: Too many arguments for open at
/usr/local/www/insecure/wiki/lib/TWiki/Sandbox.pm line 383, near "$olderr ) "
[Wed Nov 9 18:52:38 2005] configure: [Wed Nov 9 18:52:38 2005] configure:
BEGIN failed--compilation aborted at /usr/local/www/insecure/wiki/lib/TWiki.pm
line 132.
Error: Check path to twiki/lib and check that LocalSite.cfg is present and
readable
I looked at that line, which is:
open( STDERR, '>&', $olderr ) || die "Can't restore STDERR";;
I do not know perl very well, but when I googled for the open function of perl,
I saw this:
You may also, in the Bourne shell tradition, specify an EXPR beginning with
'>&', in which case the rest of the string is interpreted as the name of a
filehandle (or file descriptor, if numeric) to be duped and opened. You may use
& after >, >>, <, +>, +>>, and +<. The mode you specify should match the mode
of
the original filehandle. (Duping a filehandle does not take into account any
existing contents of stdio buffers.) Duping file handles is not yet supported
for 3-argument open().
(
http://www.sunsite.ualberta.ca/Documentation/Misc/perl-5.6.1/pod/perlfunc/open.html
)
I am not quite sure what the fix would be, maybe open (STDERR, '>&$olderr') ?
Here is some helpful information about my system:
OS:
FreeBSD 4.11-RELEASE
Perl: version 5.005_03 built for i386-freebsd
Using
TWiki:Codev.TWikiRelease2005x11x06x7338beta
-- Logan Buesching
Oh, crap. We switched to using the 3 argument form after recommendations from the security gurus. Reverted.
SVN 7445
CC