Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 71797 invoked from network); 25 May 2005 14:46:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 May 2005 14:46:28 -0000 Received: (qmail 65527 invoked by uid 500); 25 May 2005 14:46:15 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 65511 invoked by uid 500); 25 May 2005 14:46:15 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 65497 invoked by uid 99); 25 May 2005 14:46:15 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from 80-192-120-116.cable.ubr01.livi.blueyonder.co.uk (HELO packetdynamics.com) (80.192.120.116) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 25 May 2005 07:46:14 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Newbie question re: opendir X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Date: Wed, 25 May 2005 15:46:45 +0100 Message-ID: <3C129FC9A1BC9446921D3D2B2BBEB0762E679C@sbs2003.PacketDynamics.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Newbie question re: opendir Thread-Index: AcVhOJJpjPOgF8iZSlabFOiAoktC+A== From: "Paul Murphy" To: X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, Please excuse the newbie-ish nature of this question, but I have searched the mailing list archives and can't find an answer to my question. I've downloaded and installed LXR 0.9.4 on a Fedora Core 3 box to index our source here at our company, and there's a problem when I run the script named 'source' which tries to access a directory to list its contents. The mod_perl version is 2.0.0 (I upgraded to see if that would resolve the issue). The script is failing on an opendir call, stating that permission was denied. I've inserted some test code manually to try and confirm this and it seems to conform to my theory. Embedding the following line=20 opendir(DIR, '/usr/local/src/') or die ('Failed because of $!');=20 Gives ...[error] Can't open directory because of Permission denied. If I run the same code from the command as both a root and non-root user i.e. perl -Te " opendir(DIR, '/usr/local/src/') or die ('Failed because of $!');" I see no errors. I've loosened the permissions on the entire directory path to 777 to make sure that they're really is no permission issue as well. Looking through the archives for this list I've seem mails that mention checking if calls to glob() fail in a similar fashion. I've check and they don't - glob() works fine. Cheers =09 Paul