Skip Menu |

This queue is for tickets about the Net-Server CPAN distribution.

Report information
The Basics
Id: 105512
Status: resolved
Worked: 5 min
Priority: 0/
Queue: Net-Server

People
Owner: bbb [...] cpan.org
Requestors: TODDR [...] cpan.org
Cc: gregoa [...] cpan.org
PLICEASE [...] cpan.org
AdminCc:

Bug Information
Severity: Important
Broken in: 2.008
Fixed in: 2.009



Subject: Net-Server uses POSIX::tmpnam (deprecated)
In 5.22, tmpnam is deprecated. http://search.cpan.org/~rjbs/perl-5.22.0/ext/POSIX/lib/POSIX.pod tmpnam Returns a name for a temporary file. $tmpfile = POSIX::tmpnam(); For security reasons, which are probably detailed in your system's documentation for the C library tmpnam() function, this interface should not be used; instead see File::Temp.
On 2015-06-26 16:58:57, TODDR wrote: Show quoted text
> In 5.22, tmpnam is deprecated. > > http://search.cpan.org/~rjbs/perl-5.22.0/ext/POSIX/lib/POSIX.pod > > tmpnam > Returns a name for a temporary file. > > $tmpfile = POSIX::tmpnam(); > > For security reasons, which are probably detailed in your system's > documentation for the C library tmpnam() function, this interface > should not be used; instead see File::Temp.
In perl 5.25.x, POSIX::tmpnam was remove. The test suite now fails: Unimplemented: POSIX::tmpnam(): use File::Temp instead at /usr/perl5.25.1t/lib/5.25.1/amd64-freebsd-thread-multi/POSIX.pm line 187. Unimplemented: POSIX::tmpnam() at t/UNIX_test.t line 5. BEGIN failed--compilation aborted at t/UNIX_test.t line 5. t/UNIX_test.t ............. Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run
On 2015-06-26 13:58:57, TODDR wrote: Show quoted text
> In 5.22, tmpnam is deprecated. > > http://search.cpan.org/~rjbs/perl-5.22.0/ext/POSIX/lib/POSIX.pod > > tmpnam > Returns a name for a temporary file. > > $tmpfile = POSIX::tmpnam(); > > For security reasons, which are probably detailed in your system's > documentation for the C library tmpnam() function, this interface > should not be used; instead see File::Temp.
Note that tests are now failing -- this means **THE DISTRIBUTION IS NOT INSTALLABLE UNDER NEW PERLS**, including the upcoming 5.26.0: $ make test ... ===( 166;0 0/5 0/4 0/? 0/? )====================================Unimplemented: POSIX::tmpnam(): use File::Temp instead at /Volumes/amaretto/Users/ether/perl5/perlbrew/perls/25.11/lib/5.25.11/darwin-2level/POSIX.pm line 185. Unimplemented: POSIX::tmpnam() at t/UNIX_test.t line 5. BEGIN failed--compilation aborted at t/UNIX_test.t line 5. t/UNIX_test.t ............. Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run Test Summary Report ------------------- t/UNIX_test.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output Files=15, Tests=180, 0 wallclock secs ( 0.07 usr 0.04 sys + 0.89 cusr 0.21 csys = 1.21 CPU) Result: FAIL Failed 1/15 test programs. 0/180 subtests failed. make: *** [test_dynamic] Error 255
This affects Catalyst::Devel. Please get in touch with the Catalyst maintainers if a new module maintainer is required.
There's a fix for this in https://github.com/rhandom/perl-net-server/pull/10, could this please be merged and released? - ilmari
On 2017-07-05 05:19:51, ilmari wrote: Show quoted text
> There's a fix for this in https://github.com/rhandom/perl-net- > server/pull/10, could this please be merged and released?
It seems that 2.009 has this fix, so this ticket may be marked as resolved (I cannot).
On Mon Nov 05 11:52:18 2018, SREZIC wrote: Show quoted text
> On 2017-07-05 05:19:51, ilmari wrote:
> > There's a fix for this in https://github.com/rhandom/perl-net- > > server/pull/10, could this please be merged and released?
> > It seems that 2.009 has this fix, so this ticket may be marked as > resolved (I cannot).
Correct. Net::Server 2.009 does not use tmpnam() anymore.