Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I dug out some old code and tried to run on 5.26.2:
Unimplemented: POSIX::tmpnam(): use File::Temp instead at POSIX.pm line 185.Now I have to edit a module? Great! This is apparently why:
"POSIX.1-2008 marks tmpnam() as obsolete." "Note: avoid using these functions; use mkstemp(3) or tmpfile(3) instead." man7.org/linux/man-pages/man3/tmpnam.3.htmlMy question is why are POSIX, and by extension Perl, breaking our code because *they* made a mistake? Why didn't they fix tmpnam() as if lives depended on not breaking standards? I hope no pacemakers use this C routine. By not making one fix they broke probably vast numbers of programs. I guess someone who knows how could grep github to see the damage.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Trickle Down Bugs: Who broke our code?
by ikegami (Patriarch) on Jun 13, 2018 at 05:20 UTC | |
Re: Trickle Down Bugs: Who broke our code?
by afoken (Chancellor) on Jun 13, 2018 at 21:22 UTC | |
Re: Trickle Down Bugs: Who broke our code?
by karlgoethebier (Abbot) on Jun 13, 2018 at 14:13 UTC | |
Re: Trickle Down Bugs: Who broke our code?
by taint (Chaplain) on Jun 13, 2018 at 02:36 UTC |
Back to
Seekers of Perl Wisdom