This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Stop truncate(word) from falling back to file name
authorFather Chrysostomos <sprout@cpan.org>
Thu, 26 Jul 2012 05:04:02 +0000 (22:04 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 26 Jul 2012 05:08:38 +0000 (22:08 -0700)
In commit 5e0adc2d66, which was a bug fix, I made the mistake of
checking the truth of the return value of gv_fetchsv, which is called
when truncate‚Äôs argument is a bareword.

This meant that truncate FOO, 0; would truncate the file named FOO if
the glob happened to have been deleted.


No differences found