summaryrefslogtreecommitdiffstats
path: root/perl-install/install/commands.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-11-19 18:11:25 +0000
committerOlivier Blin <oblin@mandriva.com>2009-11-19 18:11:25 +0000
commitb495b57fe420b248441a63eea98a0ee086b8246d (patch)
treed3ad65179da77aad6615b42ac23dfb2f0e3b30af /perl-install/install/commands.pm
parent079277ff90cedb739ba94b089966d0ce6b5594d3 (diff)
downloaddrakx-backup-do-not-use-b495b57fe420b248441a63eea98a0ee086b8246d.tar
drakx-backup-do-not-use-b495b57fe420b248441a63eea98a0ee086b8246d.tar.gz
drakx-backup-do-not-use-b495b57fe420b248441a63eea98a0ee086b8246d.tar.bz2
drakx-backup-do-not-use-b495b57fe420b248441a63eea98a0ee086b8246d.tar.xz
drakx-backup-do-not-use-b495b57fe420b248441a63eea98a0ee086b8246d.zip
fix using stdin and stdout in builtin dd command
Diffstat (limited to 'perl-install/install/commands.pm')
-rw-r--r--perl-install/install/commands.pm2
1 files changed, 1 insertions, 1 deletions
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=<file>] [of=<file>] [bs=<number>] [count=<number>]\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;