[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#530615: ITP: libfile-temp-perl -- return name and handle of a temporary file safely

Package: wnpp
Severity: wishlist
Owner: Brian Cassidy <brian.cassidy@gmail.com>

* Package name    : libfile-temp-perl
  Version         : 0.21
  Upstream Author : Tim Jenness <tjenness@cpan.org>
* URL             : http://search.cpan.org/dist/File-Temp/
* License         : Artistic | GPL-1+
  Programming Lang: Perl
  Description     : return name and handle of a temporary file safely

File::Temp can be used to create and open temporary files in a safe way.
There is both a function interface and an object-oriented interface. The
File::Temp constructor or the tempfile() function can be used to return the
name and the open filehandle of a temporary file. The tempdir() function can
be used to create a temporary directory.

The security aspect of temporary file creation is emphasized such that a
filehandle and filename are returned together. This helps guarantee that a
race condition can not occur where the temporary file is created by another
process between checking for the existence of the file and its opening.
Additional security levels are provided to check, for example, that the
sticky bit is set on world writable directories. See "safe_level" for more

Reply to: