summaryrefslogtreecommitdiffstats
path: root/perl-install/install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install')
-rw-r--r--perl-install/install/NEWS1
-rw-r--r--perl-install/install/commands.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index 7f73f432f..58d1038e5 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,6 +1,7 @@
- do not offer to upgrade/install in restore mode
- fix detecting hidden partitions as recovery
- allow to convert ext2/3 to ext4 but do not enable flags
+- fix using stdin and stdout in builtin dd command
Version 12.77 - 30 October 2009
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;