From ed9113faaa67f462b522e2da6b13ae131fea4cee Mon Sep 17 00:00:00 2001 From: Alexandr Ciornii Date: Sun, 16 Mar 2014 14:12:42 +0200 Subject: File::Copy does not overwrite read-only files --- lib/File/Copy.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/File') diff --git a/lib/File/Copy.pm b/lib/File/Copy.pm index a20a96493c..95fb4e18f3 100644 --- a/lib/File/Copy.pm +++ b/lib/File/Copy.pm @@ -22,7 +22,7 @@ sub syscopy; sub cp; sub mv; -$VERSION = '2.29'; +$VERSION = '2.30'; require Exporter; @ISA = qw(Exporter); @@ -370,6 +370,7 @@ written to. If the second argument does not exist but the parent directory does exist, then it will be created. Trying to copy a file into a non-existent directory is an error. Trying to copy a file on top of itself is also an error. +C will not overwrite read-only files. If the destination (second argument) already exists and is a directory, and the source (first argument) is not a filehandle, then the source -- cgit v1.2.1