summaryrefslogtreecommitdiff
path: root/lib/File
diff options
context:
space:
mode:
authorAlexandr Ciornii <alexchorny@gmail.com>2014-03-16 14:12:42 +0200
committerKarl Williamson <khw@cpan.org>2014-07-14 12:57:32 -0600
commited9113faaa67f462b522e2da6b13ae131fea4cee (patch)
tree83850eac76b43a704b13d7f6b010d4799a193e03 /lib/File
parent3c1e67acf7ef53180a12a2904a6a8ceb2bbfd512 (diff)
downloadperl-ed9113faaa67f462b522e2da6b13ae131fea4cee.tar.gz
File::Copy does not overwrite read-only files
Diffstat (limited to 'lib/File')
-rw-r--r--lib/File/Copy.pm3
1 files changed, 2 insertions, 1 deletions
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<copy> 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