From b495b57fe420b248441a63eea98a0ee086b8246d Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 19 Nov 2009 18:11:25 +0000 Subject: fix using stdin and stdout in builtin dd command --- perl-install/install/commands.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/install/commands.pm') diff --git a/perl-install/install/commands.pm b/perl-install/install/commands.pm index 4f19a1a2d..19712f079 100644 --- a/perl-install/install/commands.pm +++ b/perl-install/install/commands.pm @@ -208,7 +208,7 @@ sub dd { my $u = "usage: dd [-h] [-p] [if=] [of=] [bs=] [count=]\n"; my ($help, $percent) = getopts(\@_, qw(hp)); die $u if $help; - my %h = (if => *STDIN, of => *STDOUT, bs => 512, count => undef); + my %h = (if => \*STDIN, of => \*STDOUT, bs => 512, count => undef); foreach (@_) { /(.*?)=(.*)/ && exists $h{$1} or die $u; $h{$1} = $2; -- cgit v1.2.1