🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #53894

Re: Bizarre happenings from nnrpperlauth

#53894
From: G Hardman
Date: Tue, 21 Aug 2001 08:26
37 lines
1892 bytes
The following keys moved, Russ Allbery allegedly moved 'em : 

>Something's screwing up file descriptors somewhere.  Is your Perl stuff
>opening or closing files by any chance?

Yes. We have an existing authentication system where certain groups are
restricted to reading and writing by certain staff, others are readable
but not writable by students, and others are world readable/writable. The 
permissions are obtained from existing files which we're trying to 
incorporate into the test system.

The file-opening is as follows:

open(FILE, "<".$groupsfile) || ($returnval = $nopost);
if($returnval)
{
    # some error message
}
else
{
    while(<FILE>)
    {
        # read file, do nothing with the information as yet
    }
    close(FILE);
}

I can't see where things would go wrong with the file descriptors. Even 
when I comment out the auth_init subroutine body (ie allow everything 
through), the same error occurs.

Any clearer?

TIA,
G

Technical Details
Message-ID: <GIEssJ.Jtp@leeds.ac.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.86.7.162!newsfeed.wirehub.nl!easynet-monga!easynet.net!server5.netnews.ja.net!leeds-iss.ac.uk!gph
References: <GIDKIJ.8pp@leeds.ac.uk> <yl8zgefbe6.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <GIEssJ.Jtp@leeds.ac.uk>
Subject: Re: Bizarre happenings from nnrpperlauth
Date: Tue, 21 Aug 2001 08:26:41 GMT
From: gph@comp.leeds.ac.uk (G Hardman)
References: <GIDKIJ.8pp@leeds.ac.uk> <yl8zgefbe6.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.86.7.162!newsfeed.wirehub.nl!easynet-monga!easynet.net!server5.netnews.ja.net!leeds-iss.ac.uk!gph
Newsgroups: news.software.nntp
User-Agent: slrn/0.9.6.2 (Linux)
Sender: usenet@leeds.ac.uk (Usenet admin)
Organization: School of Computing, University of Leeds
Originator: gph@Linux
X-Nntp-Posting-Host: cslin-gps.leeds.ac.uk
Lines: 36