Revert File::Copy::copy() to fail when copying a file onto itself
authorSteve Hay <steve.m.hay@googlemail.com>
Tue, 28 Aug 2012 10:33:00 +0000 (11:33 +0100)
committerSteve Hay <steve.m.hay@googlemail.com>
Tue, 28 Aug 2012 17:29:12 +0000 (18:29 +0100)
commit39b80fd98d49815a504e4c2feeb5d6ae5ee1555e
tree09f1f16a5fcee7afdc77d1a131eb72ee476d79df
parenta0084943302ae84253561a08e28aecf602611ac4
Revert File::Copy::copy() to fail when copying a file onto itself

Copying a file onto itself was made a fatal error by 96a91e0163.
This was changed in 754f2cd0b9 from an undesirable croak() to return 1,
but the documentation was never changed from it being a fatal error.
It should probably have remained an error as per the documentation (but
updated not to say fatal) for consistency with cases of copying a file
onto itself via symbolic links or hard links.
lib/File/Copy.pm
lib/File/Copy.t