• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

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

ItemTemplate
Summary Too many arguments for open() in Sandbox.pm
ReportedBy PeterThoeny
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins 7445
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r3 - 2005-11-13 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback