RT #73714: Regression in 5.12: File::Copy and initial spaces
authorDavid Mitchell <davem@iabyn.com>
Sat, 27 Mar 2010 18:07:30 +0000 (18:07 +0000)
committerDavid Mitchell <davem@iabyn.com>
Sat, 27 Mar 2010 18:12:39 +0000 (18:12 +0000)
commitfff5c6e2d16a6c4070b5580acb55b3663ed90c08
tree3374e097d7fa80c3ab27973825fd0385034d17f0
parent94e9284742fce739393f3ccf1f443b4486b689cc
RT #73714: Regression in 5.12: File::Copy and initial spaces

Commit 81ec4fbc8320b72171c9fbea0fa0456b3a687f92
removed some obsolete code that processed with leading spaces in filenames
(not needed with 3-arg open), but didn't quite clean out everything.
This meant that trying to copy to a file whose name had a leading space
would unceremoniously die with
    Undefined subroutine &File::Copy::_protect called
lib/File/Copy.pm
lib/File/Copy.t