summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-12-04 18:27:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-12-04 18:27:17 +0000
commitfc9e9403c8bcd671a83fe4349581ccac76d3b294 (patch)
tree27b022632792b4bab8b562cb1ffa76acde9897a2
parentdac5ee6a98143c8ac4219f94fba395aa3b507e3c (diff)
downloaddrakx-fc9e9403c8bcd671a83fe4349581ccac76d3b294.tar
drakx-fc9e9403c8bcd671a83fe4349581ccac76d3b294.tar.gz
drakx-fc9e9403c8bcd671a83fe4349581ccac76d3b294.tar.bz2
drakx-fc9e9403c8bcd671a83fe4349581ccac76d3b294.tar.xz
drakx-fc9e9403c8bcd671a83fe4349581ccac76d3b294.zip
fix typo ($hd is not available in read_header(), so don't use it)
-rw-r--r--perl-install/partition_table/gpt.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/partition_table/gpt.pm b/perl-install/partition_table/gpt.pm
index 0f60fce07..7faad2be4 100644
--- a/perl-install/partition_table/gpt.pm
+++ b/perl-install/partition_table/gpt.pm
@@ -105,7 +105,7 @@ sub read_header {
sysread $F, $tmp, psizeof($main_format) or die "error while reading partition table in sector $sector";
my %info; @info{@$main_fields} = unpack $main_format, $tmp;
- $info{magic} eq $magic or die "bad magic number on disk $hd->{device}";
+ $info{magic} eq $magic or die "bad magic number";
$info{myLBA} == $sector or die "myLBA is not the same";
$info{headerSize} == psizeof($main_format) or die "bad partition table header size";
$info{partitionEntrySize} == psizeof($partitionEntry_format) or die "bad partitionEntrySize";