[rt-devel] Date in Unix format

Jesse jesse at fsck.com
Wed Sep 27 15:01:55 EDT 2000


*nod* Once I get a moment, we'll probably require File::Temp and start using
it for all our tempfiles.


On Wed, Sep 27, 2000 at 01:46:50PM -0400, David N. Blank-Edelman wrote:
> arclight at jump.net writes:
> 
> > Aside: I also like POSIX::tmpnam() vs some unholy amalgam of $$ and
> > time() if only because I can blame a standards committee (or Sun) if
> > my code blows up...
> 
> To go further afield, this method (or using IO::File->new_tmpfile()
> which is another interface to the same thing) is better because it, in
> theory, produces non-predictable filenames. This is pretty crucial for
> security purposes. The "in theory" part is in my statement because not
> all operating systems produce good random names.  For example, SunOS
> 4.x has a lousy implementation of tmpfile.
> 
> If you want to be even spiffier in this regard, later version of Perl
> (the 5.7.0 track) will be shipping with File::Temp which attempts to
> do the "right thing" even when the operating system does not.
> 
> For more information on File::Temp and temporary files, see:
> 
> http://search.cpan.org/search?mode=module&query=File%3A%3ATemp
> 
> Hope this diversion is helpful to the RT developers and other folks.
>    Peace,
>       dNb 
> 
> _______________________________________________
> Rt-devel mailing list
> Rt-devel at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-devel
> 

-- 
jesse reed vincent --- root at eruditorum.org --- jesse at fsck.com 
pgp keyprint: 50 41 9C 03 D0 BC BC C8 2C B9 77 26 6F E1 EB 91
-------------------------------------------------------------
  "Mary had a crypto key / She kept it in escrow
     And everything that Mary said / The Feds were sure to know" -- Sam Simpson 




More information about the Rt-devel mailing list