From 6c3ff2fa5aa3b9ebab711350c558df6608e175d4 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 31 Mar 2004 14:12:40 +0000 Subject: cp_af() now handles devices (block and character) --- 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 4573fc4..bf4cd01 100644 --- a/MDK/Common/File.pm +++ b/MDK/Common/File.pm @@ -184,7 +184,7 @@ sub cp_with_option { } elsif ((-b $src || -c $src) && $keep_special) { my @stat = stat($src); require MDK::Common::System; - MDK::Common::System::syscall_('mknod', $dest, $stat[2], $stat[6]) or die "mknod failed (dev $_): $!"; + MDK::Common::System::syscall_('mknod', $dest, $stat[2], $stat[6]) or die "mknod failed (dev $dest): $!"; } else { local *F; open F, $src or die "can't open $src for reading: $!\n"; local *G; open G, "> $dest"; -- cgit v1.2.1