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

Re: fixing Sys::Hostname

From:
Andy Dougherty
Date:
February 7, 2000 07:00
Subject:
Re: fixing Sys::Hostname
Message ID:
Pine.SOL.4.10.10002070952490.26805-100000@maxwell.phys.lafayette.edu
On Mon, 7 Feb 2000, Tom Christiansen wrote:

[fine specific proposal for gethostname]

[more fine specific proposals for /tmp file security issues.]

> I'd like to see this fixed.  Can anyone say why *not* to fix it?
> If not, let's just do it.  Please.

> 		And not a single one of you has paid attention
> to the tmpfile problem that's triggered a couple dozen bugtraq
> reports against Perl in the last six months.

On p5p, silence usually means either consent or complete bewilderment. In
this case, I'd venture to say it means consent (though folks undoubtedly
reserve the right to complain later, of course:-).

Causes usually need a champion to implement them.  The mkstemp() one is
slightly involved because it involves a new Configure check.  Well, here
it is, in case anyone wants to pursue this.

For mkstemp() related things, simply add these three lines to Configure

: see if mkstemp exists
set mkstemp d_mkstemp
eval $inlibc

And these lines to config_h.SH

/* HAS_MKSTEMP :
   This symbol, if defined, indicates that the mkstemp routine is
   available to create and open a unique temporary file.
*/
$d_mkstemp HAS_MKSTEMP		/**/

and Configure will look for mkstemp().

-- 
    Andy Dougherty		doughera@lafayette.edu
    Dept. of Physics
    Lafayette College, Easton PA 18042




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