Subject: | Changed behaviour on failure in temporary file creation |
Date: | Mon, 7 May 2012 16:48:56 +0200 |
To: | bug-Config-IniFiles [...] rt.cpan.org |
From: | gregor herrmann <gregoa [...] debian.org> |
Hi,
thanks for fixing the temporary filename issue in 2.71!
When trying to backport the fix to 2.52 (the version in Debian
stable), Adam D. Barratt noted [0] tthat he behaviour has changed:
The insecure version carp()ed and returned undef if opening the
temporary file failed; tempfile() TTBMOK just croak()s.
This might be an unpleasant change for callers that rely on a return
value of undef if anything in the function fails.
Not sure what's the best way of handling this, so I thought I'd bring
it up with you guys :)
Cheers,
gregor
[0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=671255#44
--
.''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
: :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/
`. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
`- NP: Cat Stevens: Trouble
Message body not shown because it is not plain text.