Debian Bug report logs - #78357
ITP: libfile-temp-perl -- Access to Mktemp funstions in Perl

Package: wnpp; Maintainer for wnpp is wnpp@debian.org;

Reported by: Jon Middleton <jjm@ixtab.org.uk>

Date: Wed, 29 Nov 2000 21:04:41 UTC

Severity: wishlist

Done: Samuel Hocevar <sam@zoy.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org:
Bug#78357; Package wnpp. Full text and rfc822 format available.

Acknowledgement sent to Jon Middleton <jjm@ixtab.org.uk>:
New Bug report received and forwarded. Copy sent to wnpp@debian.org. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Jon Middleton <jjm@ixtab.org.uk>
To: submit@bugs.debian.org
Subject: ITP: libfile-temp-perl -- Access to Mktemp funstions in Perl
Date: Wed, 29 Nov 2000 21:05:20 +0000
[Message part 1 (text/plain, inline)]
Package: wnpp
Severity: wishlist

Description: Access to Mktemp funstions in Perl
 This module can be used to generate temporary files (providing
 a filename and filehandle) or directories. Possible race conditions
 are avoided and some security checks are performed (eg making sure
 the sticky bit is set on world writeable temp directories).

 It could be considered to be in a beta state since it has only been
 tested on six operating systems.

License: This program is free software; you can redistribute it and/or 
modify it under the same terms as Perl itself.

The package can be downloaded from
deb http://www.ixtab.org.uk/debian unstable main contrib non-free
 or
http://www.ixtab.org.uk/debian/dists/woody/main/binary-i386/interpreters/libnetserver-generic-perl_1.02-1_i386.deb

and the source package from
deb-src http://www.ixtab.org.uk/debian unstable main contrib non-free

-- 
Jon.
     
     "Along with freedom of speech and freedom of assembly, there is 
     freedom to share generally useful information with other people. This 
     should be an inalienable right."
        Richard M. Stallman, creator of the GNU Public License.
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org:
Bug#78357; Package wnpp. Full text and rfc822 format available.

Acknowledgement sent to "Darren/Torin/Who Ever..." <torin@daft.com>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org. Full text and rfc822 format available.

Message #10 received at 78357@bugs.debian.org (full text, mbox):

From: "Darren/Torin/Who Ever..." <torin@daft.com>
To: Jon Middleton <jjm@ixtab.org.uk>, 78357@bugs.debian.org
Subject: Re: Bug#78357: ITP: libfile-temp-perl -- Access to Mktemp funstions in Perl
Date: 30 Nov 2000 02:24:44 -0800
Jon Middleton, in an immanent manifestation of deity, wrote:
>Description: Access to Mktemp funstions in Perl
> This module can be used to generate temporary files (providing
> a filename and filehandle) or directories. Possible race conditions
> are avoided and some security checks are performed (eg making sure
> the sticky bit is set on world writeable temp directories).

Is this different than POSIX::tmpnam considering:
NAME
       mktemp - make a unique temporary file name
CONFORMING TO
       BSD 4.3. POSIX dictates tmpnam(3).


Note that there is also IO::File::new_tmpfile to give you a filehandle
rather than just a filename...

Darren
-- 
<torin@daft.com><http://www.daft.com/~torin/> <torin@debian.org><perl@slut.org>
Darren Stalder/2608 Second Ave, @282/Seattle, WA 98121-1212/USA/+1-206-ELF-LIPZ
@		     Make a little hot-tub in your soul.		      @



Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org:
Bug#78357; Package wnpp. Full text and rfc822 format available.

Acknowledgement sent to Jon Middleton <jjm@ixtab.org.uk>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org. Full text and rfc822 format available.

Message #15 received at 78357@bugs.debian.org (full text, mbox):

From: Jon Middleton <jjm@ixtab.org.uk>
To: "Darren/Torin/Who Ever..." <torin@daft.com>
Cc: 78357@bugs.debian.org
Subject: Re: Bug#78357: ITP: libfile-temp-perl -- Access to Mktemp funstions in Perl
Date: Thu, 30 Nov 2000 13:25:24 +0000
On Thu, Nov 30, 2000 at 02:24:44AM -0800, Darren/Torin/Who Ever... wrote:
> Jon Middleton, in an immanent manifestation of deity, wrote:
> >Description: Access to Mktemp funstions in Perl
> > This module can be used to generate temporary files (providing
> > a filename and filehandle) or directories. Possible race conditions
> > are avoided and some security checks are performed (eg making sure
> > the sticky bit is set on world writeable temp directories).
> 
> Is this different than POSIX::tmpnam considering:
> NAME
>        mktemp - make a unique temporary file name
> CONFORMING TO
>        BSD 4.3. POSIX dictates tmpnam(3).
> 
> 
> Note that there is also IO::File::new_tmpfile to give you a filehandle
> rather than just a filename...

The main purpose of the module to help guarantee that race conditions do
not occur with file and directory nameing and creation.

It's is different from POSIX::tmpnam in that it will creates the file (
from a template name and with an optional suffix ) in a secure manner and
returns the filehandle and the filename, whereas tmpnam just gives you a 
filename which did not exist when the function was called which you have to
create in a secure manner your self, giving a usal race conditions.

With IO::File::new_tmpfile it will creates an anonymous file (  ie its
unlinked after opening ) on systems that support it, so can not be used where 
the tempfile is needed after the program has fininshed running.



called.

Yes, it is different, IO::File::new_tmpfile creates files that using unlink
magic ( ie an anonymous on systems that support it )  with File::Temp you
are allowed to specify the 

you
can create directorys and files that out live the program and 

-- 
Jon

     "Along with freedom of speech and freedom of assembly, there is
      freedom to share generally useful information with other people.
      This should be an inalienable right."
             Richard M. Stallman, creator of the GNU Public License.
	     



Bug closed, send any further explanations to Jon Middleton <jjm@ixtab.org.uk> Request was from Samuel Hocevar <sam@zoy.org> to control@bugs.debian.org. Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 25 01:55:59 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.