From 4d6f5fb6248f81dfe10da76cf1201cee186a8da2 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Fri, 13 Oct 2000 10:27:47 +0000 Subject: empty partition table as assumed only if the MBR is really composed of only null chars. --- perl-install/partition_table_empty.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/partition_table_empty.pm') diff --git a/perl-install/partition_table_empty.pm b/perl-install/partition_table_empty.pm index 4379bdfad..a33798faf 100644 --- a/perl-install/partition_table_empty.pm +++ b/perl-install/partition_table_empty.pm @@ -21,7 +21,7 @@ sub read($$) { my ($hd, $sector) = @_; my $tmp; - my $magic = "\0" x 256; + my $magic = "\0" x 512; local *F; partition_table_raw::openit($hd, *F) or die "failed to open device"; c::lseek_sector(fileno(F), $sector, 0) or die "reading of partition in sector $sector failed"; -- cgit v1.2.1