develooper Front page | perl.perl5.porters | Postings from February 2004

Re: [perl #15063] /tmp issues

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
February 1, 2004 07:42
Subject:
Re: [perl #15063] /tmp issues
Message ID:
20040201154134.GE23511@fdisolutions.com
On Mon, Jan 26, 2004 at 01:22:18AM +0300, Solar Designer wrote:
> Hi,
> 
> Well, our package has been updated to Perl 5.8.3, and attached to this
> message you can find the new temporary file handling patch.

Thanks, applied to bleedperl as change #22255, except for the following:

Many systems don't have a /var/run directory, or it is only writeable by root;
so in the following files I didn't change the examples from '/tmp/foo'
to '/var/run/foo'; instead I changed them to just 'foo' or '/some/path/foo'
as appropriate:

    ext/DB_File/DB_File.pm
    ext/Storable/Storable.pm
    lib/CGI/Cookie.pm
    pod/perldbmfilter.pod


ext/ODBM_File/ODBM_File.xs
    changed "/nonexistent" to "/non/exist/ent" -less likelyhood of the
    file actually being created, eg by a bug in the script

lib/CGI.pm
    I didn't apply this!

    +# XXX: The temporary file handling implemented in here is crap.  It should
    +# be re-done making use of File::Temp.

lib/CPAN.pm    
    didn't apply this:

     # If more accuracy is wanted/needed, Chris Leach sent me this patch...
     
      # > *** /install/perl/live/lib/CPAN.pm-	Wed Sep 24 13:08:48 1997
    - # > --- /tmp/cp	Wed Sep 24 13:26:40 1997
    + # > --- cp	Wed Sep 24 13:26:40 1997

lib/ExtUtils/instmodsh
    it no longer uses the tmp file it creates, so I just removed the
	$tmp = "/tmp/inst.$$"
    line instead.

lib/perl5db.pl
pod/perldebug.pod
    rather than changing the tty file from /tmp/perldbtty$$ to
    /var/run/perldbtty$$, I changed it to .perldbtty$$
    Note that this is a user-visible change.

utils/perlbug.PL

    This is designed to run on old 5.005 syststems, and as such it can't
    rely on File::Temp, so I didn't apply this one.



-- 
Please note that ash-trays are provided for the use of smokers,
whereas the floor is provided for the use of all patrons.
    -- Bill Royston

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About