From 262c6d17a23ee7047c25e60310b0ebbcc39cb40a Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 8 Nov 2004 16:41:19 +0000 Subject: fix cp_with_option which called cp_af() recursively, loosing the specific options --- MDK/Common/File.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MDK/Common/File.pm b/MDK/Common/File.pm index 3e28689..26923a4 100644 --- a/MDK/Common/File.pm +++ b/MDK/Common/File.pm @@ -180,7 +180,7 @@ sub cp_with_option { } } elsif (-d $src) { -d $dest or mkdir $dest, (stat($src))[2] or die "mkdir: can't create directory $dest: $!\n"; - cp_af(glob_($src), $dest); + cp_with_option($option, glob_($src), $dest); } elsif ((-b $src || -c $src) && $keep_special) { my @stat = stat($src); require MDK::Common::System; -- cgit v1.2.1